Updated from OpenStack Ansible Tests
Change-Id: I740d54d0610c3fc757f6569e927f0e9b31887c51
This commit is contained in:
parent
286414c2a6
commit
415b5ad7a8
@ -26,7 +26,7 @@
|
|||||||
gcc
|
gcc
|
||||||
|
|
||||||
# Base requirements for Ubuntu
|
# Base requirements for Ubuntu
|
||||||
git-core [platform:dpkg platform:suse]
|
git-core [platform:dpkg]
|
||||||
libssl-dev [platform:dpkg]
|
libssl-dev [platform:dpkg]
|
||||||
libffi-dev [platform:dpkg]
|
libffi-dev [platform:dpkg]
|
||||||
python3 [platform:dpkg]
|
python3 [platform:dpkg]
|
||||||
@ -35,15 +35,12 @@ python3-dev [platform:dpkg]
|
|||||||
|
|
||||||
# Base requirements for RPM distros
|
# Base requirements for RPM distros
|
||||||
gcc-c++ [platform:rpm]
|
gcc-c++ [platform:rpm]
|
||||||
git [platform:rpm !platform:suse]
|
git [platform:rpm]
|
||||||
libffi-devel [platform:rpm]
|
libffi-devel [platform:rpm]
|
||||||
openssl-devel [platform:rpm]
|
openssl-devel [platform:rpm]
|
||||||
python3-dnf [platform:fedora]
|
python3-dnf [platform:fedora]
|
||||||
python3-devel [platform:rpm]
|
python3-devel [platform:rpm]
|
||||||
|
|
||||||
# Base requirements for Gentoo
|
|
||||||
git [platform:gentoo]
|
|
||||||
|
|
||||||
# For SELinux
|
# For SELinux
|
||||||
libselinux-python3 [platform:redhat]
|
libselinux-python3 [platform:redhat]
|
||||||
libsemanage-python3 [platform:redhat]
|
libsemanage-python3 [platform:redhat]
|
||||||
|
@ -53,19 +53,13 @@ source /etc/os-release || source /usr/lib/os-release
|
|||||||
|
|
||||||
# Figure out the appropriate package install command
|
# Figure out the appropriate package install command
|
||||||
case ${ID,,} in
|
case ${ID,,} in
|
||||||
*suse*) pkg_mgr_cmd="zypper -n in" ;;
|
|
||||||
centos|rhel|fedora) pkg_mgr_cmd="dnf install -y" ;;
|
centos|rhel|fedora) pkg_mgr_cmd="dnf install -y" ;;
|
||||||
ubuntu|debian) pkg_mgr_cmd="apt-get install -y" ;;
|
ubuntu|debian) pkg_mgr_cmd="apt-get install -y" ;;
|
||||||
# Gentoo needs to have version set since it's rolling
|
|
||||||
gentoo) pkg_mgr_cmd="emerge --jobs=4"; VERSION="rolling" ;;
|
|
||||||
*) echo "unsupported distribution: ${ID,,}"; exit 1 ;;
|
*) echo "unsupported distribution: ${ID,,}"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Install git so that we can clone the tests repo if git is not available
|
# Install git so that we can clone the tests repo if git is not available
|
||||||
case ${ID,,} in
|
which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" git
|
||||||
gentoo) which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" dev-vcs/git ;;
|
|
||||||
*) which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" git ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Clone the tests repo for access to the common test script
|
# Clone the tests repo for access to the common test script
|
||||||
if [[ ! -d "${COMMON_TESTS_PATH}" ]]; then
|
if [[ ! -d "${COMMON_TESTS_PATH}" ]]; then
|
||||||
|
@ -68,7 +68,8 @@
|
|||||||
state: "present"
|
state: "present"
|
||||||
when:
|
when:
|
||||||
- (_oslomsg_rpc_vhost is undefined) or
|
- (_oslomsg_rpc_vhost is undefined) or
|
||||||
(_oslomsg_notify_vhost != _oslomsg_rpc_vhost)
|
(_oslomsg_notify_vhost != _oslomsg_rpc_vhost) or
|
||||||
|
(_oslomsg_notify_setup_host != _oslomsg_rpc_setup_host)
|
||||||
|
|
||||||
- name: Apply Notify RabbitMQ vhost policies
|
- name: Apply Notify RabbitMQ vhost policies
|
||||||
community.rabbitmq.rabbitmq_policy:
|
community.rabbitmq.rabbitmq_policy:
|
||||||
@ -80,7 +81,8 @@
|
|||||||
loop: "{{ _oslomsg_notify_policies | default([]) + oslomsg_notify_policies }}"
|
loop: "{{ _oslomsg_notify_policies | default([]) + oslomsg_notify_policies }}"
|
||||||
when:
|
when:
|
||||||
- (_oslomsg_rpc_vhost is undefined) or
|
- (_oslomsg_rpc_vhost is undefined) or
|
||||||
(_oslomsg_notify_vhost != _oslomsg_rpc_vhost)
|
(_oslomsg_notify_vhost != _oslomsg_rpc_vhost) or
|
||||||
|
(_oslomsg_notify_setup_host != _oslomsg_rpc_setup_host)
|
||||||
|
|
||||||
- name: Add Notify RabbitMQ user
|
- name: Add Notify RabbitMQ user
|
||||||
community.rabbitmq.rabbitmq_user:
|
community.rabbitmq.rabbitmq_user:
|
||||||
@ -95,7 +97,8 @@
|
|||||||
no_log: true
|
no_log: true
|
||||||
when:
|
when:
|
||||||
- (_oslomsg_rpc_userid is undefined) or
|
- (_oslomsg_rpc_userid is undefined) or
|
||||||
(_oslomsg_notify_userid != _oslomsg_rpc_userid)
|
(_oslomsg_notify_userid != _oslomsg_rpc_userid) or
|
||||||
|
(_oslomsg_notify_setup_host != _oslomsg_rpc_setup_host)
|
||||||
|
|
||||||
- name: Setup RPC MQ Service (Qdrouterd)
|
- name: Setup RPC MQ Service (Qdrouterd)
|
||||||
delegate_to: "{{ _oslomsg_rpc_setup_host }}"
|
delegate_to: "{{ _oslomsg_rpc_setup_host }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user