d4ef66fc02
In order to compress static files against pyhton 3.11 a fixed version with fixed regexp in pyScss is needed. While fix is merged, pyScss is not tagged/released yet. While this required only for Debian12, it will work nicely also with older python versions, since there're almost no changes in the package. instead of building based on SHA. Change-Id: I76f945310b70c1b081800c5ba0ec922795b60a73
63 lines
3.6 KiB
YAML
63 lines
3.6 KiB
YAML
---
|
|
# 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|pyScss)=') | 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 }}"
|