Merge "tempest_services var for setting tempest_service_available_{}"

This commit is contained in:
Zuul 2019-04-08 14:34:29 +00:00 committed by Gerrit Code Review
commit 1644995005
3 changed files with 19 additions and 0 deletions

View File

@ -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 }}"

View File

@ -0,0 +1,4 @@
---
features:
- Added new parameter ``tempest_services`` for setting
tempest_service_available_{service_name} var automatically.

View File

@ -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: