Skip importing haproxy_service_config with no haproxy hosts
For deployments that do not have haproxy defined and using some 3rd party loadbalancer there is no need to import haproxy_service_config playbook. Change-Id: Ib0e58bd64ffc4a0c9ffae76e02333fa1bf790c4d
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: galera_all
|
||||
service_variable: "galera_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: adjutant_api
|
||||
service_variable: "adjutant_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: aodh_api
|
||||
service_variable: "aodh_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: barbican_api
|
||||
service_variable: "barbican_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: blazar_api
|
||||
service_variable: "blazar_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -55,7 +55,9 @@
|
||||
vars:
|
||||
service_group: cinder_api
|
||||
service_variable: "cinder_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
vars:
|
||||
service_group: cloudkitty_api
|
||||
service_variable: "cloudkitty_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
vars:
|
||||
service_group: designate_api
|
||||
service_variable: "designate_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: glance_api
|
||||
service_variable: "glance_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: gnocchi_api
|
||||
service_variable: "gnocchi_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: heat_api
|
||||
service_variable: "heat_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: horizon_all
|
||||
service_variable: "horizon_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: ironic_api
|
||||
service_variable: "ironic_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -59,7 +59,9 @@
|
||||
vars:
|
||||
service_group: keystone_all
|
||||
service_variable: "keystone_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
vars:
|
||||
service_group: magnum_all
|
||||
service_variable: "magnum_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: manila_api
|
||||
service_variable: "manila_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -49,7 +49,9 @@
|
||||
vars:
|
||||
service_group: masakari_api
|
||||
service_variable: "masakari_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: mistral_api
|
||||
service_variable: "mistral_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -53,7 +53,9 @@
|
||||
vars:
|
||||
service_group: neutron_server
|
||||
service_variable: "neutron_haproxy_services"
|
||||
when: groups[service_group]
|
||||
when:
|
||||
- groups[service_group]
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -41,7 +41,9 @@
|
||||
- nova_console
|
||||
- nova_ironic_console
|
||||
service_variable: "nova_haproxy_services"
|
||||
when: groups['nova_all'] | length > 0
|
||||
when:
|
||||
- groups['nova_all'] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: octavia-api
|
||||
service_variable: "octavia_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: placement_api
|
||||
service_variable: "placement_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: skyline_all
|
||||
service_variable: "skyline_haproxy_services"
|
||||
when: groups[service_group]
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: swift_all
|
||||
service_variable: "swift_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vars:
|
||||
service_group: tacker_server
|
||||
service_variable: "tacker_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
vars:
|
||||
service_group: trove_api
|
||||
service_variable: "trove_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -45,7 +45,9 @@
|
||||
vars:
|
||||
service_group: zun_api
|
||||
service_variable: "zun_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -74,7 +74,9 @@
|
||||
vars:
|
||||
service_group: rabbitmq_all
|
||||
service_variable: "rabbitmq_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
@@ -63,7 +63,9 @@
|
||||
vars:
|
||||
service_group: repo_all
|
||||
service_variable: "repo_haproxy_services"
|
||||
when: groups[service_group] | length > 0
|
||||
when:
|
||||
- groups[service_group] | length > 0
|
||||
- groups['haproxy'] | length > 0
|
||||
tags:
|
||||
- haproxy-service-config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user