How to set up rundeck in a centos-7 server

Date posted : 15/02/2019

Introduction

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

Run deck Applications

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.

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

Installation of Rundeck

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.

To configure rundeck with ansible playbook

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 longlasting fun using Rundeck!! 🙂

Thanks for using pheonix solutions.

Share it with your friends if you find this article is helpful. Thanks a lot.

Leave a Reply