Consistent hostname format env for split-stack
authorJames Slagle <jslagle@redhat.com>
Mon, 24 Jul 2017 18:39:23 +0000 (14:39 -0400)
committerJames Slagle <jslagle@redhat.com>
Mon, 24 Jul 2017 18:42:28 +0000 (14:42 -0400)
Adds a new environment split-stack-consistent-hostname-format.j2.yaml
for use with split-stack that will set the {{role.name}}HostnameFormat
parameters based on the actual roles in use.

It's possible to generate these parameters and values as long as the
roles files is the same between the 2 stacks, which will be documented
in I9997bd685f8f79537dfc377f9f1eb0c7446c3289.

Removes the hardcoded paramters from the other 2 split-stack
environments.

Change-Id: I93bc7c1a24a9cb2f9930372970c67c0eadb14add

environments/overcloud-baremetal.j2.yaml
environments/overcloud-services.yaml
environments/split-stack-consistent-hostname-format.j2.yaml [new file with mode: 0644]

index 8d7bc8d..93191a7 100644 (file)
@@ -11,10 +11,3 @@ parameter_defaults:
 {% for role in roles %}
   {{role.name}}Services: []
 {% endfor %}
-
-  # Consistent Hostname format
-  ControllerHostnameFormat: overcloud-controller-%index%
-  ComputeHostnameFormat: overcloud-novacompute-%index%
-  ObjectStorageHostnameFormat: overcloud-objectstorage-%index%
-  CephStorageHostnameFormat: overcloud-cephstorage-%index%
-  BlockStorageHostnameFormat: overcloud-blockstorage-%index%
index 1d01cb3..ac1c69f 100644 (file)
@@ -1,10 +1,2 @@
 resource_registry:
   OS::TripleO::DeployedServerEnvironment: ../deployed-server/deployed-server-environment-output.yaml
-
-parameter_defaults:
-  # Consistent Hostname format
-  ControllerDeployedServerHostnameFormat: overcloud-controller-%index%
-  ComputeDeployedServerHostnameFormat: overcloud-novacompute-%index%
-  ObjectStorageDeployedServerHostnameFormat: overcloud-objectstorage-%index%
-  CephStorageDeployedServerHostnameFormat: overcloud-cephstorage-%index%
-  BlockStorageDeployedServerHostnameFormat: overcloud-blockstorage-%index%
diff --git a/environments/split-stack-consistent-hostname-format.j2.yaml b/environments/split-stack-consistent-hostname-format.j2.yaml
new file mode 100644 (file)
index 0000000..8345c10
--- /dev/null
@@ -0,0 +1,5 @@
+parameter_defaults:
+  # Consistent Hostname format
+{% for role in roles %}
+  {{role.name}}HostnameFormat: overcloud-{{role.name.lower()}}-%index%
+{% endfor %}