Rundeck allows you to run commands/scripts on a remote computer. It is used to create a job by defining a single step or a workflow that can execute any set of commands, scripts, or tools on any number of local or remote nodes. Jobs can be triggered by the scheduler or on-demand via the web interface or API. This article explains about ‘How to install Rundesk on Debian 8 server’
Rundeck is written in java programming language, so it requires you to install java in your machine. To install Java programming on Debian, use the following commands –
$ sudo dpkg --add-architecture i386 $ sudo apt-get install openjdk-8-jre
To download Rundeck, use the following command –
$ wget https://dl.bintray.com/rundeck/rundeck-deb/rundeck-2.6.7-1-GA.deb
The sample output should be like this –
-2016-05-24 10:13:36-- https://dl.bintray.com/rundeck/rundeck-deb/rundeck-2.6.7-1-GA.deb Resolving dl.bintray.com (dl.bintray.com)... 75.126.118.188, 108.168.243.150 Connecting to dl.bintray.com (dl.bintray.com)|75.126.118.188|:80... connected. HTTP request sent, awaiting response... 302 Location: https://akamai.bintray.com/e1/e16270d345783b5911c7761b4c064ad96eac592e34d65375a 20bd9fb12a661b6?__gda__=exp=1464065737~hmac=e31ce334c506ded9695118b6b42169f6cda96ac611e5d88d6067bff6c5049db7& response-content-disposition=attachment%3Bfilename%3D%22rundeck-2.6.7-1-GA.deb %22&response-content-type=application%2Fjson [following] --2016-05-24 10:13:37-- https://akamai.bintray.com/e1/e16270d345783b5911c7761b4c064ad96eac592e34d65375a 20bd9fb12a661b6?__gda__=exp=1464065737~hmac=e31ce334c506ded9695118b6b42169f6cd a96ac611e5d88d6067bff6c5049db7& response-content-disposition=attachment%3Bfilename%3D%22rundeck-2.6.7-1-GA.deb %22&response-content-type=application%2Fjson Resolving akamai.bintray.com (akamai.bintray.com)... 104.120.161.132 Connecting to akamai.bintray.com (akamai.bintray.com)|104.120.161.132|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 101028776 (96M) [application/json] Saving to: ‘rundeck-2.6.7-1-GA.deb’ rundeck-2.6.7-1-GA. 100%[===================>] 96.35M 1.76MB/s in 54s 2016-05-24 10:14:32 (1.79 MB/s) - ‘rundeck-2.6.7-1-GA.deb’ saved [101028776/101028776]
To install Rundeck, use the following command –
$ sudo dpkg -i ./rundeck-2.6.7-1-GA.deb
The sample output should be like this –
Selecting previously unselected package rundeck. (Reading database ... 197916 files and directories currently installed.) Preparing to unpack ./rundeck-2.6.7-1-GA.deb ... Unpacking rundeck (2.6.7) ... Setting up rundeck (2.6.7) ... Adding group rundeck....done Adding system user rundeck....done Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (229-4ubuntu4) ...
To configure Rundeck Sever, Edit the files /etc/rundeck/framework.properties and /etc/rundeck/rundeck-config.properties and change the following command –
grails.serverURL=https://localhost:4440
to
grails.serverURL=https://your_server:4440
If you are working on localhost, skip the above step. To start Rundeck, use the following command –
$ sudo /etc/init.d/rundeckd start
The sample output should be like this –
[ ok ] Starting rundeckd (via systemctl): rundeckd.service.
Now open your favorite web browser and go to − https://your_server:4440 or https://localhost:4440.The sample output should be like this –
To connect to the GUI, use the username and password as admin. The sample output should be like this –
Click on the link “New project” to add a project. You have to provide at least a project name (without spaces). The sample output should be like this –
In the “Resource Model source” section, click the “Edit” button and choose “Require file exists”. Then click on “Save” button. The sample output should be like this –
Now you are ready to create your first job. This job consists of an SSH connection to launch a remote command. Click on “Create a new job” and choose your job name (without spaces). Now we need a password and a sudo password to connect and launch a command.
Enter all the above details and click on “save” button. After this article, you will be able to understand – how to install Rundeck on a Debian 8 (Jessie) server. In our next articles, we will come up with more Linux based tricks and tips. Keep reading!