Setup oslo.messaging extra packages for optional drivers
Change-Id: I23eecb8747dad03df32927697e4d01fbb9224770
This commit is contained in:
parent
f2c6b96076
commit
820fe6786f
|
@ -145,6 +145,10 @@ trove_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}"
|
||||||
trove_oslomsg_notify_userid: trove
|
trove_oslomsg_notify_userid: trove
|
||||||
trove_oslomsg_notify_vhost: /trove
|
trove_oslomsg_notify_vhost: /trove
|
||||||
|
|
||||||
|
## Qdrouterd integration
|
||||||
|
# TODO(ansmith): Change structure when more backends will be supported
|
||||||
|
trove_oslomsg_amqp1_enabled: "{{ trove_oslomsg_rpc_transport == 'amqp' }}"
|
||||||
|
|
||||||
# Rabbit vars
|
# Rabbit vars
|
||||||
trove_control_exchange: trove
|
trove_control_exchange: trove
|
||||||
trove_rabbit_notification_topic: notification
|
trove_rabbit_notification_topic: notification
|
||||||
|
@ -220,6 +224,9 @@ trove_pip_packages:
|
||||||
- python-memcached
|
- python-memcached
|
||||||
- trove
|
- trove
|
||||||
|
|
||||||
|
trove_optional_oslomsg_amqp1_pip_packages:
|
||||||
|
- oslo.messaging[amqp1]
|
||||||
|
|
||||||
# This variable is used by the repo_build process to determine
|
# This variable is used by the repo_build process to determine
|
||||||
# which host group to check for members of before building the
|
# which host group to check for members of before building the
|
||||||
# pip packages required by this role. The value is picked up
|
# pip packages required by this role. The value is picked up
|
||||||
|
|
|
@ -128,6 +128,23 @@
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
- name: Install optional pip packages
|
||||||
|
pip:
|
||||||
|
name: "{{ trove_optional_oslomsg_amqp1_pip_packages }}"
|
||||||
|
state: "{{ trove_pip_package_state }}"
|
||||||
|
virtualenv: "{{ trove_bin | dirname }}"
|
||||||
|
virtualenv_site_packages: "no"
|
||||||
|
when: trove_oslomsg_amqp1_enabled
|
||||||
|
register: install_optional_packages
|
||||||
|
until: install_optional_packages is success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
notify:
|
||||||
|
- Restart trove API services
|
||||||
|
- Restart trove conductor service
|
||||||
|
- Restart trove taskmanager service
|
||||||
|
- Restart Apache
|
||||||
|
|
||||||
- name: Record the venv tag deployed
|
- name: Record the venv tag deployed
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||||
|
|
Loading…
Reference in New Issue