Fix CentOS package installation
Add missing yum packages for neutron/nova/swifthost tests. Change-Id: I4c954ca8517ae1d456eda4f841cf64da233a78cd
This commit is contained in:
parent
a5d53d0934
commit
32bcd744e4
@ -65,12 +65,22 @@
|
||||
pre_tasks:
|
||||
# NOTE: These are typically installed in the repo server where we build the
|
||||
# neutron wheel
|
||||
- name: Install packages required to build neutron python package
|
||||
- name: Install packages required to build neutron python package (Ubuntu)
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
with_items:
|
||||
- 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
|
||||
vhost_name: "{{ neutron_rabbitmq_vhost }}"
|
||||
user_name: "{{ neutron_rabbitmq_userid }}"
|
||||
|
@ -22,7 +22,7 @@
|
||||
pre_tasks:
|
||||
# NOTE: These are typically installed in the repo server where we build the
|
||||
# nova wheel
|
||||
- name: Install packages required to build nova python package
|
||||
- name: Install packages required to build nova python package (Ubuntu)
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
with_items:
|
||||
@ -34,6 +34,18 @@
|
||||
when:
|
||||
- inventory_hostname in groups['nova_all']
|
||||
- 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
|
||||
vhost_name: "{{ nova_rabbitmq_vhost }}"
|
||||
user_name: "{{ nova_rabbitmq_userid }}"
|
||||
|
@ -18,7 +18,7 @@
|
||||
user: root
|
||||
gather_facts: true
|
||||
pre_tasks:
|
||||
- name: Ensure xfsprogs is installed on localhost
|
||||
- name: Ensure xfsprogs is installed on localhost (Ubuntu)
|
||||
apt:
|
||||
name: xfsprogs
|
||||
state: present
|
||||
@ -26,12 +26,26 @@
|
||||
run_once: true
|
||||
when:
|
||||
- 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:
|
||||
name: xfsprogs
|
||||
state: present
|
||||
when:
|
||||
- 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
|
||||
file:
|
||||
state: directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user