Browse Source

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

Zuul 8 months ago
parent
commit
edfe84bc9d
2 changed files with 19 additions and 0 deletions
  1. 7
    0
      defaults/main.yml
  2. 12
    0
      tasks/magnum_install.yml

+ 7
- 0
defaults/main.yml View File

@@ -101,6 +101,10 @@ magnum_oslomsg_notify_userid: "{{ magnum_oslomsg_rpc_userid }}"
101 101
 magnum_oslomsg_notify_password: "{{ magnum_oslomsg_rpc_password }}"
102 102
 magnum_oslomsg_notify_vhost: "{{ magnum_oslomsg_rpc_vhost }}"
103 103
 
104
+## (Qdrouterd) integration
105
+# TODO(ansmith): Change structure when more backends will be supported
106
+magnum_oslomsg_amqp1_enabled: "{{ magnum_oslomsg_rpc_transport == 'amqp' }}"
107
+
104 108
 # Keystone AuthToken/Middleware
105 109
 magnum_keystone_auth_plugin: password
106 110
 magnum_service_project_domain_name: Default
@@ -137,6 +141,9 @@ magnum_pip_packages:
137 141
   - python-memcached
138 142
   - uwsgi
139 143
 
144
+magnum_optional_oslomsg_amqp1_pip_packages:
145
+  - oslo.messaging[amqp1]
146
+
140 147
 # This variable is used by the repo_build process to determine
141 148
 # which host group to check for members of before building the
142 149
 # pip packages required by this role. The value is picked up

+ 12
- 0
tasks/magnum_install.yml View File

@@ -115,6 +115,18 @@
115 115
   tags:
116 116
     - skip_ansible_lint
117 117
 
118
+- name: Install optional pip packages
119
+  pip:
120
+    name: "{{ magnum_optional_oslomsg_amqp1_pip_packages }}"
121
+    state: "{{ magnum_pip_package_state }}"
122
+    virtualenv: "{{ magnum_bin | dirname }}"
123
+    virtualenv_site_packages: "no"
124
+  when: magnum_oslomsg_amqp1_enabled
125
+  register: install_optional_packages
126
+  until: install_optional_packages is success
127
+  retries: 5
128
+  delay: 2
129
+
118 130
 - name: Record the venv tag deployed
119 131
   ini_file:
120 132
     dest: "/etc/ansible/facts.d/openstack_ansible.fact"

Loading…
Cancel
Save