--- # Copyright 2014, Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE(jrosser) # horizon appears in u-c as is it used as a library for the horizon plugins # the new pip resolver will fail to install horizon if two contradictory # constraints are given which will always happen with a source install # and wheels built on the repo server. We must filter horizon out of u-c. - name: Retrieve the constraints URL uri: url: "{{ horizon_upper_constraints_url }}" return_content: yes register: _u_c_contents - name: Install the python venv include_role: name: "python_venv_build" vars: venv_python_executable: "{{ horizon_venv_python_executable }}" venv_build_constraints: "{{ _u_c_contents.content.split('\n') | reject('match', '^(horizon)=') | list + horizon_venv_extra_constraints }}" venv_build_distro_package_list: "{{ horizon_devel_distro_packages }}" venv_install_destination_path: "{{ horizon_bin | dirname }}" venv_pip_install_args: "{{ horizon_pip_install_args }}" venv_pip_packages: >- {{ horizon_pip_packages | union(horizon_user_pip_packages) + horizon_optional_pip_packages + horizon_service_pip_packages | default([]) + (horizon_enable_adjutant_ui | bool) | ternary(horizon_adjutant_optional_pip_packages, []) + (horizon_enable_barbican_ui | bool) | ternary(horizon_barbican_optional_pip_packages, []) + (horizon_enable_blazar_ui | bool) | ternary(horizon_blazar_optional_pip_packages, []) + (horizon_enable_cloudkitty_ui | bool) | ternary(horizon_cloudkitty_optional_pip_packages, []) + (horizon_enable_designate_ui | bool) | ternary(horizon_designate_optional_pip_packages, []) + (horizon_enable_heat_ui | bool) | ternary(horizon_heat_optional_pip_packages, []) + (horizon_enable_ironic_ui | bool) | ternary(horizon_ironic_optional_pip_packages, []) + (horizon_enable_magnum_ui | bool) | ternary(horizon_magnum_optional_pip_packages, []) + (horizon_enable_mistral_ui | bool) | ternary(horizon_mistral_optional_pip_packages, []) + (horizon_enable_manila_ui | bool) | ternary(horizon_manila_optional_pip_packages, []) + (horizon_enable_masakari_ui | bool) | ternary(horizon_masakari_optional_pip_packages, []) + (horizon_enable_murano_ui | bool) | ternary(horizon_murano_optional_pip_packages, []) + (horizon_enable_neutron_vpnaas | bool) | ternary(horizon_neutron_vpnaas_optional_pip_packages, []) + (horizon_enable_octavia_ui | bool) | ternary(horizon_octavia_optional_pip_packages, []) + (horizon_enable_sahara_ui | bool) | ternary(horizon_sahara_optional_pip_packages, []) + (horizon_enable_tacker_ui | bool) | ternary(horizon_tacker_optional_pip_packages, []) + (horizon_enable_trove_ui | bool) | ternary(horizon_trove_optional_pip_packages, []) + (horizon_enable_watcher_ui | bool) | ternary(horizon_watcher_optional_pip_packages, []) + (horizon_enable_zun_ui | bool) | ternary(horizon_zun_optional_pip_packages, []) }} venv_facts_when_changed: - section: "horizon" option: "venv_tag" value: "{{ horizon_venv_tag }}"