Setup oslo.messaging extra packages for optional drivers

Change-Id: I3793994eaf59c7ac98aebb82a17884d7d34332a1
This commit is contained in:
Andy Smith 2018-07-23 11:50:45 -04:00
parent 52444d4d97
commit fa018036e4
2 changed files with 20 additions and 0 deletions

View File

@ -238,6 +238,13 @@ ironic_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}"
ironic_oslomsg_notify_userid: ironic
ironic_oslomsg_notify_vhost: /ironic
## (Qdrouterd) integration
# TODO(ansmith): Change structure when more backends will be supported
ironic_oslomsg_amqp1_enabled: "{{ ironic_oslomsg_rpc_transport == 'amqp' }}"
ironic_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]
# Auth
ironic_service_user_name: "ironic"

View File

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