Rundeck is an open source software that allows you to automate routine operational procedures in any kind of multi-server environment. It has a number of features that are aimed at alleviating time-consuming tasks. You can easily scale up automation and give other members of your team their own self-service area to deploy jobs. Team collaboration is greatly facilitated with Rundeck. It allows you to run tasks on any number of nodes from a Web-based or command-line interface.

Rundeck also provides other features that allow you to easily scale up your automation efforts, including: access controls, workflow building, logging, scheduling, and integration with external sources. Its code is freely available on GitHub under the rundeck project by SimplifyOps, and supported by the Rundeck community.

Let us now see how to set up Rundeck on a CentOS 7 server.

Prerequisites:

  • CentOS 7 server
  • Java installed

You can easily check if Java is installed in your machine by using the command- java -version. If Java is not installed, then the following message will be displayed on the console.

java version

To install Java, use the command- yum install java-1.7.0-openjdk, as shown below:

Java install

It will take a while. Type ‘y’ wherever applicable. Once the installation is complete, you will be able to see a display on the console as shown below-

Java installed

Now can use rpm to download Rundeck using the command- rpm -Uvh http://repo.rundeck.org/latest.rpm

rpm

Install this using the command- yum install rundeck

yum

This will take a few minutes. Type ‘y’ wherever applicable. Once the installation has completed, you will see the following message on the console.

rundeck install

Now that we have installed Rundeck, we can start it using the command- service rundeckd start. You can access the same from a browser using port 4440. The default username and password is “admin“. You will be able to see a console as shown below-

Rundeck portal

Let us now look at how to integrate Rundeck with Ansible. Ansible is essentially a piece of software that can help you automate software provisioning, configuration management, and application deployment.

You can add an Ansible plugin to the already installed Rundeck. For doing so, use the following command-

wget https://github.com/Batix/rundeck-ansible-plugin/releases/download/2.0.2/ansible-plugin-2.0.2.jar -P /var/lib/rundeck/libext/

ansible

You should now be able to see an Ansible plugin, as shown below-

ansible plugin

Now stop Rundeck using the command- /etc/init.d/rundeckd stop. Then start it again using the command- /etc/init.d/rundeckd start

Ansible screen

Log in and you can start using Ansible from here on.

That’s all. Have a blast using Rundeck!!

Facebooktwittergoogle_plusredditpinterestlinkedinmail