Configure CentOS 7 based Ansible provisioning server for OpenStack


To configure a CentOS 7 system as ansible provisioning server for OpenStack environment we need the following packages to be installed:


    • gcc
    • python-devel
    • python-pip
    • pbr
    • python-openstackclient
    • shade

But these packages need to be installed in a sequence, else you may get some dependency related errors.

Steps to install the above packages:


1. Install epel repo and gcc package on CentOS 7 system:

   # yum install gcc epel-release -y

2. Install ansible using yum:

   # yum install ansible -y

3. Install python-devel and python-pip

   # yum install python-devel python-pip -y 

4. Now use pip to upgrade python-pip package:

   # pip install --trusted-host pypi.python.org --upgrade pip
   Collecting pip
   Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 203kB/s
   Installing collected packages: pip
   Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
   Successfully installed pip-9.0.1  

5. Install the pbr package:

   # pip install  --trusted-host pypi.python.org pbr
   Collecting pbr
   Downloading pbr-3.0.1-py2.py3-none-any.whl (99kB)
    100% |████████████████████████████████| 102kB 232kB/s
   Installing collected packages: pbr
   Successfully installed pbr-3.0.1

6. Install the python-openstackclient:

   # pip install  --trusted-host pypi.python.org python-openstackclient   

7. Finally install the shade package:

   # pip install  --trusted-host pypi.python.org  shade


Now ansible server is ready to communicate with your OpenStack infrastructure over OpenStack apis.

Comments

Popular posts from this blog

How to build Ubuntu Server 20.04 LTS OVA with vAPP Properties ?

VNC Configuration using Ansible in CentOS 7

LVM Configuration using Ansible in CentOS 7