Merge "Setup oslo.messaging extra packages for optional drivers"
This commit is contained in:
commit
031d466646
|
@ -239,6 +239,13 @@ ironic_oslomsg_notify_userid: "{{ ironic_oslomsg_rpc_userid }}"
|
||||||
ironic_oslomsg_notify_password: "{{ ironic_oslomsg_rpc_password }}"
|
ironic_oslomsg_notify_password: "{{ ironic_oslomsg_rpc_password }}"
|
||||||
ironic_oslomsg_notify_vhost: "{{ ironic_oslomsg_rpc_vhost }}"
|
ironic_oslomsg_notify_vhost: "{{ ironic_oslomsg_rpc_vhost }}"
|
||||||
|
|
||||||
|
## (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
|
# Auth
|
||||||
ironic_service_user_name: "ironic"
|
ironic_service_user_name: "ironic"
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,19 @@
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- 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
|
- 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