aboutsummaryrefslogtreecommitdiffstats
path: root/overcloud-source.yaml
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2014-04-23 13:23:15 +1200
committerRobert Collins <rbtcollins@hp.com>2014-05-01 12:45:46 +1200
commitf7663a8973a508c8707b3a05621ac1d49eb6d627 (patch)
tree75020e1c8bdc7238c056b4cf4bfef6cfe302e33b /overcloud-source.yaml
parentb8d42f54c6ca193d6b24162d01f3e0a56bd8c6e6 (diff)
Scale the control plane in hosts files.
Being able to figure out the hypervisors from the control nodes seems useful, and equally all the hypervisors should know about all the control nodes (at least until we have virtual IPs all in place), and lastly the control plane need to know each other by hostname. Change-Id: I92877501c58d8c210e7b2c94935e107355271fb9
Diffstat (limited to 'overcloud-source.yaml')
-rw-r--r--overcloud-source.yaml94
1 files changed, 80 insertions, 14 deletions
diff --git a/overcloud-source.yaml b/overcloud-source.yaml
index 3aafb6dd..6949deaa 100644
--- a/overcloud-source.yaml
+++ b/overcloud-source.yaml
@@ -277,17 +277,32 @@ Resources:
- show
- 'novalocal'
- Fn::Join:
- - ' '
- - - Fn::Select:
- - 0
- - Fn::Select:
- - ctlplane
- - Fn::GetAtt:
- - controller0
- - networks
- - {Ref: CloudName}
- # If CloudName is unset, make the hosts line still valid
- - unused
+ - "\n"
+ - Merge::Map:
+ controller0:
+ Fn::Join:
+ - ' '
+ - - Fn::Select:
+ - 0
+ - Fn::Select:
+ - ctlplane
+ - Fn::GetAtt:
+ - controller0
+ - networks
+ - Fn::Select:
+ - name
+ - Fn::GetAtt:
+ - controller0
+ - show
+ - Fn::Join:
+ - '.'
+ - - Fn::Select:
+ - name
+ - Fn::GetAtt:
+ - controller0
+ - show
+ - 'novalocal'
+ - {Ref: CloudName}
NovaCompute0Passthrough:
Type: OS::Heat::StructuredDeployment
Properties:
@@ -456,9 +471,60 @@ Resources:
- ':8000/v1/waitcondition'
hosts:
Fn::Join:
- - ' '
- - - {"Fn::Select": [ 0, "Fn::Select": [ ctlplane, { "Fn::GetAtt": [ controller0, networks ]}]]}
- - {Ref: CloudName}
+ - "\n"
+ - - Fn::Join:
+ - "\n"
+ - Merge::Map:
+ NovaCompute0:
+ Fn::Join:
+ - ' '
+ - - Fn::Select:
+ - 0
+ - Fn::Select:
+ - ctlplane
+ - Fn::GetAtt:
+ - NovaCompute0
+ - networks
+ - Fn::Select:
+ - name
+ - Fn::GetAtt:
+ - NovaCompute0
+ - show
+ - Fn::Join:
+ - '.'
+ - - Fn::Select:
+ - name
+ - Fn::GetAtt:
+ - NovaCompute0
+ - show
+ - 'novalocal'
+ - Fn::Join:
+ - "\n"
+ - Merge::Map:
+ controller0:
+ Fn::Join:
+ - ' '
+ - - Fn::Select:
+ - 0
+ - Fn::Select:
+ - ctlplane
+ - Fn::GetAtt:
+ - controller0
+ - networks
+ - Fn::Select:
+ - name
+ - Fn::GetAtt:
+ - controller0
+ - show
+ - Fn::Join:
+ - '.'
+ - - Fn::Select:
+ - name
+ - Fn::GetAtt:
+ - controller0
+ - show
+ - 'novalocal'
+ - {Ref: CloudName}
controller0SSLDeployment:
Type: OS::Heat::StructuredDeployment
Properties: