Deployment of Ansible AWX on OpenShift Origin

No comments

Deployment of Ansible AWX on OpenShift Origin

Red Hat and Ansible are agreed to creating an open-source project around the Ansible Tower codebases which was named Ansible AWX. The AWX source code is available under the Apache License 2.0. This project is hosted at Github.

Ansible is an automation technology for the management of IT environments and deployments.Using Ansible, IT operations teams can more easily deploy IT services, applications and environments.

Some benefits of Ansible:

  • Simple and human readable configuration and deployment.
  • Agent-less integration.
  • Host inventory to define different IT infrastructures.
  • A motivated and growing community which brings different modules and use cases.
  • Handling dynamic inventories in a simple way.
  • Open-source License.

In this post, we will start the installation of AWX on top of OpenShift Origin. In the next post, I will show how to use Ansible to manage Apache Configuration and deployment.

Pre-Requirements:

  • OpenShift Origin
  • Ansible installed server
  • OpenShift CLI package
  • Install Git to push project

Steps To Install Ansible AWX

Step 1: Download Ansible Project from Githup

We need to install Ansible one of server that we use for installation. I will perform all installation steps at OpenShift master node. So Ansible and OpenShift cli package will be already installed.

Step 2: Create OpenShift AWX project and PostgreSQL service

  • Create a Project named “awx”
  • Create postgreSQL database with these configuration set. You should keep these parameters to add inventory file later.

Database Service Name: postgresql

Database Connection Username: awx

PostgreSQL Connection Password: awx

PostgreSQL Database Name: awx

Step 3: Configure Inventory File

Default inventory file will be located under installer directory. Uncomment and change only the parameters that you need to use. I downloaded binary files under “/appdata/”. So my inventory file will be located “/appdata/awx/installer/”. Also you can download the inventory file which I used at this post from that link.

Step 4: Execute the Installation with Ansible

Step 5: Add a persistent volume to AWX-Celery

After installation we need to define a persistent volume to AWX-Celery.

Set running statefulset replicas to “0” for awx.

You should create a persistent volume claim for the “awx-celery”. First use web console to create a PVC which named “claim-awx” then run these commands for volume.

That’s all. You can access url and then login with default username and password.

Default username: admin

Password:password

Follow me

Abdurrahim

I'm a System Engineer with extensive experience and administration skills and works for Interbank Card Center Of Turkey.I provide hardware and software support for the following Unix/Linux and Windows platforms.(Oracle Solaris,HP-UX, Linux, IBM-AIX, Windows Servers)
Follow me
facebooktwittergoogle_pluslinkedinby feather

No comments yet.

You must be logged in to post a comment.