Merge "Setup oslo.messaging extra packages for optional drivers"

This commit is contained in:
Zuul 2018-08-19 17:37:59 +00:00 committed by Gerrit Code Review
commit e2801ea743
2 changed files with 20 additions and 1 deletions

View File

@ -95,7 +95,9 @@ designate_oslomsg_notify_userid: "{{ designate_oslomsg_rpc_userid }}"
designate_oslomsg_notify_password: "{{ designate_oslomsg_rpc_password }}"
designate_oslomsg_notify_vhost: "{{ designate_oslomsg_rpc_vhost }}"
## RabbitMQ info
## (Qdrouterd) info
# TODO(ansmith): Change structure when more backends will be supported
designate_oslomsg_amqp1_enabled: "{{ designate_oslomsg_rpc_transport == 'amqp' }}"
## Pool Configuration Defaults
designate_pool_uuid: 794ccc2c-d751-44fe-b57f-8894c9f5c842
@ -183,6 +185,9 @@ designate_pip_packages:
- systemd-python
- warlock
designate_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]
designate_central_init_overrides: {}
designate_worker_init_overrides: {}
designate_producer_init_overrides: {}

View File

@ -119,6 +119,20 @@
tags:
- skip_ansible_lint
- name: Install optional pip packages
pip:
name: "{{ designate_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ designate_pip_package_state }}"
virtualenv: "{{ designate_bin | dirname }}"
virtualenv_site_packages: "no"
when: designate_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
notify:
- Restart designate services
- name: Record the venv tag deployed
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"