tempest_services var for setting tempest_service_available_{}
Currently os_tempest is used by multiple deployement tools and each of them have different methods of configuring services and currently tempest_service_available_{service_name} are setted based on group vars and group vars is not used at all places which leads enable user to specifically define a list of tempest_service_available_{service_name} which is too hectic. By introducing tempest_services: - aodh - neutron will set those vars automatically and makes it easier for handling tempest_service_availabe vars. Depends-On: https://review.openstack.org/#/c/649653/ Change-Id: I8734f38206b73e6547a6ec545f07f625e844ed66 Signed-off-by: Chandan Kumar <chkumar@redhat.com>
This commit is contained in:
parent
8d81e1eff2
commit
8e5086e090
|
@ -156,6 +156,15 @@ tempest_network_ping_gateway: False
|
|||
|
||||
tempest_dashboard_url: "https://{{ external_lb_vip_address | default('127.0.0.1') }}/"
|
||||
|
||||
# var for setting tempest_service_available_{sevice_name} vars
|
||||
# Example:
|
||||
# tempest_services:
|
||||
# - cinder
|
||||
# - aodh
|
||||
# It will set tempest_service_available_aodh and
|
||||
# tempest_service_available_cinder to true.
|
||||
tempest_services: []
|
||||
|
||||
tempest_service_available_aodh: "{{ groups['aodh_all'] is defined and groups['aodh_all'] | length > 0 }}"
|
||||
tempest_service_available_barbican: "{{ groups['barbican_all'] is defined and groups['barbican_all'] | length > 0 }}"
|
||||
tempest_service_available_ceilometer: "{{ groups['ceilometer_all'] is defined and groups['ceilometer_all'] | length > 0 }}"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
features:
|
||||
- Added new parameter ``tempest_services`` for setting
|
||||
tempest_service_available_{service_name} var automatically.
|
|
@ -25,6 +25,12 @@
|
|||
tags:
|
||||
- always
|
||||
|
||||
- name: Set tempest service specific variables
|
||||
set_fact:
|
||||
tempest_service_available_{{ item }}: true
|
||||
with_items: "{{ tempest_services }}"
|
||||
when: tempest_services | length > 0
|
||||
|
||||
- name: Gather variables for installation method
|
||||
include_vars: "{{ tempest_install_method }}_install.yml"
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue