In this article, we will have explained the necessary steps to install and configure Rundeck on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Rundeck is an open-source software Job scheduler and Run Book Automation system for automating routine processes across development and production environments. It combines task scheduling, multi-node command execution, workflow orchestration and logs everything that happens. Rundeck is available in Enterprise (Commercial) and Community (Free) editions. Rundeck Enterprise offers more features than Rundeck Community edition but with the license cost.
Install Rundeck on CentOS 8
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo dnf clean all sudo dnf update
Step 2. Install Rundeck on CentOS.
Now, let’s import the Rundeck GPG key using the following rpm command:
sudo rpm --import http://rundeck.org/keys/BUILD-GPG-KEY-Rundeck.org.key
Run the following command to install rundeck:
sudo dnf install http://repo.rundeck.org/latest.rpm
After that, enable and start rundeckd service:
systemctl enable --now rundeckd.service systemctl status rundeckd.service
Step 3. Configure Firewall.
Allow the Rundeck service port: 4440 in CentOS firewall:
firewall-cmd --permanent --add-port=4440/tcp firewall-cmd --reload
Step 4. Configure MySQL Database Backend for Rundeck
Run the below commands to create the Rundeck database:
$ mysql -u root -p Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 16 Server version: 10.3.17-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> create database rundeckdb; Query OK, 1 row affected (0.001 sec) MariaDB [(none)]> grant all on rundeckdb.* to 'rundeckuser'@'localhost' identified by 'Your-Password'; Query OK, 0 rows affected (0.001 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> exit Bye
Step 5. Accessing Rundeck.
Open your web browser and go to the following address:
http://localhost:4440 Log in with the username admin and password admin
Congratulation, you have learned how to install and configure Rundeck on CentOS 8. If you have any question, please leave a comment below.