Skip to content

Commit

Permalink
Merge "Add glance_user_pip_packages variable"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Feb 27, 2019
2 parents 6be2571 + e24fe31 commit 9539f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ glance_pip_packages:
- uwsgi
- warlock

# Specific pip packages provided by the user
glance_user_pip_packages: []

glance_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]

Expand Down
3 changes: 2 additions & 1 deletion tasks/glance_install_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
venv_install_destination_path: "{{ glance_bin | dirname }}"
venv_install_distro_package_list: "{{ glance_distro_packages }}"
venv_pip_install_args: "{{ glance_pip_install_args }}"
venv_pip_packages: "{{ (glance_oslomsg_amqp1_enabled | bool) | ternary(glance_pip_packages + glance_optional_oslomsg_amqp1_pip_packages, glance_pip_packages) }}"
venv_pip_packages: "{{ glance_pip_packages | union(glance_user_pip_packages) +
(glance_oslomsg_amqp1_enabled | bool) | ternary(glance_optional_oslomsg_amqp1_pip_packages, []) }}"
venv_facts_when_changed:
- section: "glance"
option: "need_service_restart"
Expand Down

0 comments on commit 9539f40

Please sign in to comment.