Remove hard-coded roles in EnabledServices output
authorSteven Hardy <shardy@redhat.com>
Wed, 21 Sep 2016 10:16:03 +0000 (11:16 +0100)
committerSteven Hardy <shardy@redhat.com>
Fri, 23 Sep 2016 09:15:27 +0000 (10:15 +0100)
This was missed during custom-roles work, and will mean deployments
break if any of the existing roles are removed from roles_data.yaml

Change-Id: Ia737b48a0dd272f8d706b7458764201fa47cb0bb
Closes-Bug: #1625755

overcloud.j2.yaml

index aad1af6..c364873 100644 (file)
@@ -536,8 +536,6 @@ outputs:
   EnabledServices:
     description: The services enabled on each role
     value:
-      Controller: {get_attr: [ControllerServiceChain, role_data, service_names]}
-      Compute: {get_attr: [ComputeServiceChain, role_data, service_names]}
-      BlockStorage: {get_attr: [BlockStorageServiceChain, role_data, service_names]}
-      ObjectStorage: {get_attr: [ObjectStorageServiceChain, role_data, service_names]}
-      CephStorage: {get_attr: [CephStorageServiceChain, role_data, service_names]}
+{% for role in roles %}
+      {{role.name}}: {get_attr: [{{role.name}}ServiceChain, role_data, service_names]}
+{% endfor %}