Provide different package lists for install and wheel build

Also install libxml2 into the target host.

Change-Id: Ie7eeb360c44d1d496bacb6e7f393ac4a90c0236b
Closes-Bug: 1857899
Related-Bug: 1915617
This commit is contained in:
Jonathan Rosser 2021-03-02 16:55:57 +00:00
parent 503b4d25cf
commit ce0fd21213
3 changed files with 11 additions and 4 deletions

View File

@ -50,6 +50,7 @@
import_role:
name: "python_venv_build"
vars:
venv_build_distro_package_list: "{{ gnocchi_devel_distro_packages }}"
venv_python_executable: "{{ gnocchi_venv_python_executable }}"
venv_build_constraints: "{{ gnocchi_git_constraints }}"
venv_install_destination_path: "{{ gnocchi_bin | dirname }}"

View File

@ -16,13 +16,16 @@
cache_timeout: 600
#: Necessary packages
gnocchi_distro_packages:
gnocchi_devel_distro_packages:
- build-essential
- git
- libpq-dev
- librados-dev
- libsystemd-dev
- python-dev
- python3-dev
gnocchi_distro_packages:
- libxml2
# NOTE(noonedeadpunk): These variables are left for migration from apache to uwsgi
# which was introduced during train release. They can be dropped afterwards.
@ -30,4 +33,4 @@ gnocchi_system_service_name: apache2
gnocchi_apache_config:
- "/etc/apache2/sites-enabled/gnocchi-httpd.conf"
- "/etc/apache2/sites-available/gnocchi-httpd.conf"
gnocchi_apache_ports: "/etc/apache2/ports.conf"
gnocchi_apache_ports: "/etc/apache2/ports.conf"

View File

@ -14,7 +14,7 @@
# limitations under the License.
#: Necessary packages
gnocchi_distro_packages:
gnocchi_devel_distro_packages:
- '@Development Tools'
- git
- librados2-devel
@ -23,6 +23,9 @@ gnocchi_distro_packages:
- systemd-devel
- which
gnocchi_distro_packages:
- libxml2
# NOTE(noonedeadpunk): These variables are left for migration from apache to uwsgi
# which was introduced during train release. They can be dropped afterwards.
gnocchi_system_service_name: httpd