Fix CentOS package installation

Add missing yum packages for neutron/nova/swifthost tests.

Change-Id: I4c954ca8517ae1d456eda4f841cf64da233a78cd
This commit is contained in:
Marc Gariepy 2016-10-03 10:21:50 -04:00
parent a5d53d0934
commit 32bcd744e4
3 changed files with 41 additions and 5 deletions

View File

@ -65,12 +65,22 @@
pre_tasks: pre_tasks:
# NOTE: These are typically installed in the repo server where we build the # NOTE: These are typically installed in the repo server where we build the
# neutron wheel # neutron wheel
- name: Install packages required to build neutron python package - name: Install packages required to build neutron python package (Ubuntu)
apt: apt:
name: "{{ item }}" name: "{{ item }}"
with_items: with_items:
- libffi-dev - libffi-dev
when: inventory_hostname in groups['neutron_all'] when:
- inventory_hostname in groups['neutron_all']
- ansible_pkg_mgr == 'apt'
- name: Install packages required to build neutron python package (CentOS)
yum:
name: "{{ item }}"
with_items:
- libffi-devel
when:
- inventory_hostname in groups['neutron_all']
- ansible_pkg_mgr == 'yum'
- include: ensure-rabbitmq.yml - include: ensure-rabbitmq.yml
vhost_name: "{{ neutron_rabbitmq_vhost }}" vhost_name: "{{ neutron_rabbitmq_vhost }}"
user_name: "{{ neutron_rabbitmq_userid }}" user_name: "{{ neutron_rabbitmq_userid }}"

View File

@ -22,7 +22,7 @@
pre_tasks: pre_tasks:
# NOTE: These are typically installed in the repo server where we build the # NOTE: These are typically installed in the repo server where we build the
# nova wheel # nova wheel
- name: Install packages required to build nova python package - name: Install packages required to build nova python package (Ubuntu)
apt: apt:
name: "{{ item }}" name: "{{ item }}"
with_items: with_items:
@ -34,6 +34,18 @@
when: when:
- inventory_hostname in groups['nova_all'] - inventory_hostname in groups['nova_all']
- ansible_pkg_mgr == 'apt' - ansible_pkg_mgr == 'apt'
- name: Install packages required to build nova python package (CentOS)
yum:
name: "{{ item }}"
with_items:
- libxml2-devel
- libxslt-devel
- libffi-devel
- pkgconfig
- libvirt-devel
when:
- inventory_hostname in groups['nova_all']
- ansible_pkg_mgr == 'yum'
- include: ensure-rabbitmq.yml - include: ensure-rabbitmq.yml
vhost_name: "{{ nova_rabbitmq_vhost }}" vhost_name: "{{ nova_rabbitmq_vhost }}"
user_name: "{{ nova_rabbitmq_userid }}" user_name: "{{ nova_rabbitmq_userid }}"

View File

@ -18,7 +18,7 @@
user: root user: root
gather_facts: true gather_facts: true
pre_tasks: pre_tasks:
- name: Ensure xfsprogs is installed on localhost - name: Ensure xfsprogs is installed on localhost (Ubuntu)
apt: apt:
name: xfsprogs name: xfsprogs
state: present state: present
@ -26,12 +26,26 @@
run_once: true run_once: true
when: when:
- ansible_pkg_mgr == 'apt' - ansible_pkg_mgr == 'apt'
- name: Ensure xfsprogs is installed on containers - name: Ensure xfsprogs is installed on localhost (CentOS)
yum:
name: xfsprogs
state: present
delegate_to: "{{ physical_host }}"
run_once: true
when:
- ansible_pkg_mgr == 'yum'
- name: Ensure xfsprogs is installed on containers (Ubuntu)
apt: apt:
name: xfsprogs name: xfsprogs
state: present state: present
when: when:
- ansible_pkg_mgr == 'apt' - ansible_pkg_mgr == 'apt'
- name: Ensure xfsprogs is installed on containers (CentOS)
yum:
name: xfsprogs
state: present
when:
- ansible_pkg_mgr == 'yum'
- name: Openstack directory Create - name: Openstack directory Create
file: file:
state: directory state: directory