Installing Rundeck on Ubuntu Server

Rundeck is an opensource automation management application that allows you to schedule scripts to run in an organized fashion. Below are the steps to installing rundeck on Ubunt server.

first make sure you have mysql and java8 installed to do this run the following commands

sudo apt install openjdk-8-jdk mysql-server

Now we need to set the java8 as the default java by running

sudo update-alternatives --config java

Select the number for the java 8 install

  1. Install the rundeck community repository
curl -L https://packages.rundeck.com/pagerduty/rundeck/gpgkey | sudo apt-key add - #add sources sudo vim /etc/apt/sources.list.d/rundeck.list deb https://packages.rundeck.com/pagerduty/rundeck/any/ any main deb-src https://packages.rundeck.com/pagerduty/rundeck/any/ any main
Code language: PHP (php)

2. update apt

sudo apt update

3. Install rundeck

sudo apt install rundeck

4. Create rundeck database

sudo mysql -u root CREATE DATABASE rundeckdb; CREATE USER 'rundeck'@'localhost' IDENTIFIED BY 'STRONG PASSWORD'; GRANT ALL PRIVILEGES ON *.* TO 'rundeck'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;
Code language: JavaScript (javascript)

5. Configure Rundeck

sudo vim /etc/rundeck/rundeck-config.properties grails.serverURL=http://YOUR-SERVER-IP:4440 dataSource.driverClassName = org.mariadb.jdbc.Driver dataSource.url = jdbc:mysql://localhost/rundeckdb?autoReconnect=true&useSSL=false dataSource.username = rundeck dataSource.password = STRONG-PASSWORD
Code language: PHP (php)

6. Enable Rundeck service

sudo systemctl enable rundeckd.service sudo systemctl start rundeckd.service sudo systemctl status rundeckd.service
Code language: CSS (css)

7. Update admin password By editing /etc/rundeck/realm.properties

/etc/rundeck/realm.properties

Edit the line that looks like this and change the second “admin” to your new password.

admin:admin,user,admin,architect,deploy,build
Code language: CSS (css)

If you are running UFW make sure to allow port 4440

sudo ufw allow 4440
Read full article here

Related posts

Leave A Comment