tripleo-heat-templates/examples/scale_map.yaml
Robert Collins 70494ab2cb Add a Merge::Map feature.
We need to scatter gather in a few situations - determining rabbit
cluster membership, galera membership and configuring hosts for Nova
to permit live migration (which requires host->host communication).
This patch is a proof of concept for an eventual heat feature,
expressed in merge.py. The example given should work for actual use,
but I'll deliver that change separately.

Change-Id: I68e9b2471866810cc698ca3ea28ddf5bb1688d7b
2014-02-21 11:13:10 +13:00

56 lines
1.5 KiB
YAML

Resources:
ComputeUser:
Type: AWS::IAM::User
Properties:
Policies: [ { Ref: ComputeAccessPolicy } ]
GlobalAccessPolicy:
Type: OS::Heat::AccessPolicy
NovaCompute0Key:
Type: FileInclude
Path: examples/scale_map2.yaml
SubKey: Resources.NovaCompute0Key
NovaCompute0CompletionCondition:
Type: FileInclude
Path: examples/scale_map2.yaml
SubKey: Resources.NovaCompute0CompletionCondition
NovaCompute0CompletionHandle:
Type: FileInclude
Path: examples/scale_map2.yaml
SubKey: Resources.NovaCompute0CompletionHandle
NovaCompute0Config:
Type: FileInclude
Path: examples/scale_map2.yaml
SubKey: Resources.NovaCompute0Config
Parameters:
AllHosts:
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
- 'local'
NovaCompute0:
Type: FileInclude
Path: examples/scale_map2.yaml
SubKey: Resources.NovaCompute0