path: root/roles_data.yaml
diff options
authorAlex Schultz <aschultz@redhat.com>2017-03-29 14:43:45 -0600
committerAlex Schultz <aschultz@redhat.com>2017-04-12 06:55:29 -0600
commitbe274f1f49a15aad118a92107b7d04a57a037092 (patch)
tree3549febfae335272bfa67a78ffe0ba56cf2195ed /roles_data.yaml
parentae6883323eaed0a925b128dc53301bfa5995f41d (diff)
Add tags to roles
Prior to Ocata, the Controller role was hardcoded for various lookups. When we switched to having the primary role name being dynamically pulled from the roles_data.yaml using the first role as the primary role as part of I36df7fa86c2ff40026d59f02248af529a4a81861, it introduced a regression for folks who had previously been using a custom roles file without the Controller being listed first. Instead of relying on the position of the role in the roles data, this change adds the concepts of tags to the role data that can be used when looking for specific functionality within the deployment process. If no roles are specified with this the tags indicating a 'primary' 'controller', it will fall back to using the first role listed in the roles data as the primary role. Change-Id: Id3377e7d7dcc88ba9a61ca9ef1fb669949714f65 Closes-Bug: #1677374
Diffstat (limited to 'roles_data.yaml')
1 files changed, 11 insertions, 2 deletions
diff --git a/roles_data.yaml b/roles_data.yaml
index 4885947..c35f49e 100644
--- a/roles_data.yaml
+++ b/roles_data.yaml
@@ -28,9 +28,18 @@
# ServicesDefault: (list) optional default list of services to be deployed
# on the role, defaults to an empty list. Sets the default for the
# {{role.name}}Services parameter in overcloud.yaml
-- name: Controller # the 'primary' role goes first
+# tags: (list) list of tags used by other parts of the deployment process to
+# find the role for a specific type of functionality. Currently a role
+# with both 'primary' and 'controller' is used as the primary role for the
+# deployment process. If no roles have have 'primary' and 'controller', the
+# first role in this file is used as the primary role.
+- name: Controller
CountDefault: 1
+ tags:
+ - primary
+ - controller
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CertmongerUser