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

This commit is contained in:
Zuul 2018-08-09 07:00:35 +00:00 committed by Gerrit Code Review
commit edfe84bc9d
2 changed files with 19 additions and 0 deletions

View File

@ -101,6 +101,10 @@ magnum_oslomsg_notify_userid: "{{ magnum_oslomsg_rpc_userid }}"
magnum_oslomsg_notify_password: "{{ magnum_oslomsg_rpc_password }}" magnum_oslomsg_notify_password: "{{ magnum_oslomsg_rpc_password }}"
magnum_oslomsg_notify_vhost: "{{ magnum_oslomsg_rpc_vhost }}" magnum_oslomsg_notify_vhost: "{{ magnum_oslomsg_rpc_vhost }}"
## (Qdrouterd) integration
# TODO(ansmith): Change structure when more backends will be supported
magnum_oslomsg_amqp1_enabled: "{{ magnum_oslomsg_rpc_transport == 'amqp' }}"
# Keystone AuthToken/Middleware # Keystone AuthToken/Middleware
magnum_keystone_auth_plugin: password magnum_keystone_auth_plugin: password
magnum_service_project_domain_name: Default magnum_service_project_domain_name: Default
@ -137,6 +141,9 @@ magnum_pip_packages:
- python-memcached - python-memcached
- uwsgi - uwsgi
magnum_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

View File

@ -115,6 +115,18 @@
tags: tags:
- skip_ansible_lint - skip_ansible_lint
- name: Install optional pip packages
pip:
name: "{{ magnum_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ magnum_pip_package_state }}"
virtualenv: "{{ magnum_bin | dirname }}"
virtualenv_site_packages: "no"
when: magnum_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
- 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"