aboutsummaryrefslogtreecommitdiffstats
path: root/overcloud.yaml
diff options
context:
space:
mode:
authorSteven Hardy <shardy@redhat.com>2016-08-25 17:39:54 +0100
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-08-27 11:33:23 +0300
commit753131d6b5520552f73c9489274f2bd3c25b9e50 (patch)
treea3d5a9c27333d16842719f527c7138e8a8be9264 /overcloud.yaml
parentd67627b418f050d4afc9034c650276d58e6f9c49 (diff)
Create hiera service_enabled keys for enabled services
This adds a list of all enabled service_names in the enabled_services key, and also generates some boolean values e.g service_name_enabled, which is more convenient for some usage (such as haproxy where we need an easy way to set a flag saying if a given service is enabled) Partially-Implements: blueprint custom-roles Change-Id: I62273f403838893602816204d9bc50d516c0057f
Diffstat (limited to 'overcloud.yaml')
-rw-r--r--overcloud.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/overcloud.yaml b/overcloud.yaml
index 80ae6b6e..419ac837 100644
--- a/overcloud.yaml
+++ b/overcloud.yaml
@@ -607,6 +607,14 @@ resources:
- list_join:
- '\n'
- {get_attr: [CephStorage, hosts_entry]}
+ enabled_services:
+ list_join:
+ - ','
+ - {get_attr: [ControllerServiceChain, role_data, service_names]}
+ - {get_attr: [ComputeServiceChain, role_data, service_names]}
+ - {get_attr: [BlockStorageServiceChain, role_data, service_names]}
+ - {get_attr: [ObjectStorageServiceChain, role_data, service_names]}
+ - {get_attr: [CephStorageServiceChain, role_data, service_names]}
controller_ips: {get_attr: [Controller, ip_address]}
controller_names: {get_attr: [Controller, hostname]}
rabbit_node_ips: {get_attr: [ControllerIpListMap, net_ip_map, {get_attr: [ServiceNetMap, service_net_map, RabbitmqNetwork]}]}