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

This commit is contained in:
Zuul 2018-08-09 06:23:28 +00:00 committed by Gerrit Code Review
commit 1f7b3491e5
2 changed files with 19 additions and 0 deletions

View File

@ -89,6 +89,10 @@ aodh_oslomsg_notify_userid: "{{ aodh_oslomsg_rpc_userid }}"
aodh_oslomsg_notify_password: "{{ aodh_oslomsg_rpc_password }}"
aodh_oslomsg_notify_vhost: "{{ aodh_oslomsg_rpc_vhost }}"
## (Qdrouterd) info
# TODO(ansmith): Change structure when more backends will be supported
aodh_oslomsg_amqp1_enabled: "{{ aodh_oslomsg_rpc_transport == 'amqp' }}"
## Apache setup
aodh_apache_log_level: info
aodh_apache_servertokens: "Prod"
@ -144,6 +148,9 @@ aodh_pip_packages:
- systemd-python
- warlock
aodh_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]
aodh_alarm_notifier_init_overrides: {}
aodh_alarm_evaluator_init_overrides: {}
aodh_listener_init_overrides: {}

View File

@ -104,6 +104,18 @@
tags:
- skip_ansible_lint
- name: Install optional pip packages
pip:
name: "{{ aodh_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ aodh_pip_package_state }}"
virtualenv: "{{ aodh_bin | dirname }}"
virtualenv_site_packages: "no"
when: aodh_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
- name: Record the venv tag deployed
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"