vars: Do not install build dependencies for distro installs
The cinder_distro_packages contain packages which are build dependencies to the 'PIP' ones so we don't need to install them when we are using the Cinder distribution packages. This also renames the '*cinder_wsgi_bin' to '*cinder_uwsgi_bin' since it refers to the actual uwsgi package. Finally, we add the missing 'install_method' conditional when recording the local facts. Change-Id: Ib6f3a85dd20c61611e968baffd4e3c725d9e39b3 Implements: blueprint openstack-distribution-packages
This commit is contained in:
parent
16ee86b622
commit
ee22a77c3a
@ -307,7 +307,7 @@ cinder_services:
|
||||
wsgi_name: cinder-wsgi
|
||||
uwsgi_port: "{{ cinder_service_port }}"
|
||||
uwsgi_bind_address: "{{ cinder_uwsgi_bind_address }}"
|
||||
program_override: "{{ _cinder_wsgi_bin }}/uwsgi --autoload --ini /etc/uwsgi/cinder-api.ini"
|
||||
program_override: "{{ cinder_uwsgi_bin }}/uwsgi --autoload --ini /etc/uwsgi/cinder-api.ini"
|
||||
start_order: 4
|
||||
|
||||
# Cinder uWSGI settings
|
||||
|
@ -32,8 +32,8 @@
|
||||
ini_file:
|
||||
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||
section: cinder
|
||||
option: "{{ item }}"
|
||||
value: "True"
|
||||
option: "{{ item.name }}"
|
||||
value: "{{ item.state }}"
|
||||
with_items:
|
||||
- name: "need_online_data_migrations"
|
||||
state: "True"
|
||||
@ -49,4 +49,5 @@
|
||||
('openstack_ansible' not in ansible_local) or
|
||||
('cinder' not in ansible_local['openstack_ansible']) or
|
||||
('need_online_data_migrations' not in ansible_local['openstack_ansible']['cinder']) or
|
||||
('need_service_restart' not in ansible_local['openstack_ansible']['cinder'])
|
||||
('need_service_restart' not in ansible_local['openstack_ansible']['cinder']) or
|
||||
('install_method' not in ansible_local['openstack_ansible']['cinder'])
|
||||
|
@ -19,7 +19,7 @@
|
||||
# enabled.
|
||||
#
|
||||
cinder_package_list: |-
|
||||
{% set packages = cinder_distro_packages %}
|
||||
{% set packages = cinder_service_distro_packages %}
|
||||
{% if cinder_services['cinder-volume']['group'] in group_names %}
|
||||
{% set _ = packages.extend(cinder_volume_distro_packages) %}
|
||||
{% if cinder_backend_lvm_inuse | bool %}
|
||||
@ -29,8 +29,6 @@ cinder_package_list: |-
|
||||
{% if cinder_developer_mode | bool %}
|
||||
{% set _ = packages.extend(cinder_developer_mode_distro_packages) %}
|
||||
{% endif %}
|
||||
{% set _ = packages.extend(cinder_service_distro_packages) %}
|
||||
{{ packages }}
|
||||
|
||||
_cinder_bin: "/usr/bin"
|
||||
_cinder_wsgi_bin: "{{ cinder_wsgi_bin }}"
|
||||
|
@ -47,4 +47,4 @@ cinder_lvm_volume_distro_packages:
|
||||
- parted
|
||||
- scsi-target-utils
|
||||
|
||||
cinder_wsgi_bin: '/usr/sbin'
|
||||
cinder_uwsgi_bin: '/usr/sbin'
|
||||
|
@ -32,4 +32,4 @@ cinder_package_list: |-
|
||||
{{ packages }}
|
||||
|
||||
_cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
|
||||
_cinder_wsgi_bin: "{{ _cinder_bin }}"
|
||||
cinder_uwsgi_bin: "{{ _cinder_bin }}"
|
||||
|
@ -52,4 +52,4 @@ cinder_lvm_volume_distro_packages:
|
||||
- parted
|
||||
- tgt
|
||||
|
||||
cinder_wsgi_bin: '/usr/sbin'
|
||||
cinder_uwsgi_bin: '/usr/sbin'
|
||||
|
@ -58,4 +58,4 @@ cinder_lvm_volume_distro_packages:
|
||||
- tgt
|
||||
- thin-provisioning-tools
|
||||
|
||||
cinder_wsgi_bin: '/usr/bin'
|
||||
cinder_uwsgi_bin: '/usr/bin'
|
||||
|
@ -22,7 +22,9 @@
|
||||
- openstack-ansible-upgrade-ubuntu-xenial
|
||||
- openstack-ansible-cinder-ssl-nv
|
||||
- openstack-ansible-functional-distro_install-ubuntu-xenial
|
||||
- openstack-ansible-functional-distro_install-centos-7
|
||||
# NOTE(hwoarang) Centos7 is having some troubles with repo dependencies
|
||||
# so disabling until it's investigated.
|
||||
- openstack-ansible-functional-distro_install-centos-7-nv
|
||||
- openstack-ansible-functional-distro_install-opensuse-423
|
||||
experimental:
|
||||
jobs:
|
||||
|
Loading…
Reference in New Issue
Block a user