Setup oslo.messaging extra packages for optional drivers

Change-Id: I6166fc192de6450b6e524077c94273ecece2d30d
This commit is contained in:
Andy Smith 2018-07-27 16:06:41 -04:00
parent 4b5c1467f8
commit 2f7002ff9d
2 changed files with 20 additions and 0 deletions

View File

@ -128,6 +128,10 @@ barbican_oslomsg_notify_userid: "{{ barbican_oslomsg_rpc_userid }}"
barbican_oslomsg_notify_password: "{{ barbican_oslomsg_rpc_password }}"
barbican_oslomsg_notify_vhost: "{{ barbican_oslomsg_rpc_vhost }}"
## (Qdrouterd) integration
# TODO(ansmith): Change structure when more backends will be supported
barbican_oslomsg_amqp1_enabled: "{{ barbican_oslomsg_rpc_transport == 'amqp' }}"
# Keystone AuthToken/Middleware
barbican_keystone_auth_plugin: password
barbican_service_project_domain_id: default
@ -166,6 +170,9 @@ barbican_pip_packages:
- python-memcached
- uwsgi
barbican_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]
# This variable is used by the repo_build process to determine
# which host group to check for members of before building the
# pip packages required by this role. The value is picked up

View File

@ -103,6 +103,19 @@
tags:
- skip_ansible_lint
- name: Install optional pip packages
pip:
name: "{{ barbican_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ barbican_pip_package_state }}"
virtualenv: "{{ barbican_bin | dirname }}"
virtualenv_site_packages: "no"
when: barbican_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
notify: Restart barbican services
- name: Record the venv tag deployed
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"