Convert Fn::Select to extended get_attr
[apex-tripleo-heat-templates.git] / examples / scale_map_hot.yaml
1 heat_template_version: 2014-10-16
2 resources:
3   ComputeUser:
4     type: AWS::IAM::User
5     properties:
6       Policies: [ { get_param: ComputeAccessPolicy } ]
7   GlobalAccessPolicy:
8     type: OS::Heat::AccessPolicy
9   NovaCompute0Key:
10     type: FileInclude
11     Path: examples/scale_map2_hot.yaml
12     SubKey: resources.NovaCompute0Key
13   NovaCompute0CompletionCondition:
14     type: FileInclude
15     Path: examples/scale_map2_hot.yaml
16     SubKey: resources.NovaCompute0CompletionCondition
17   NovaCompute0CompletionHandle:
18     type: FileInclude
19     Path: examples/scale_map2_hot.yaml
20     SubKey: resources.NovaCompute0CompletionHandle
21   NovaCompute0Config:
22     type: FileInclude
23     Path: examples/scale_map2_hot.yaml
24     SubKey: resources.NovaCompute0Config
25     parameters:
26       AllHosts:
27         list_join:
28         - "\n"
29         - Merge::Map:
30             NovaCompute0:
31               list_join:
32               - ' '
33               - - {get_attr: [NovaCompute0, networks, ctlplane, 0]}
34                 - {get_attr: [NovaCompute0, show, name]}
35                 - list_join:
36                   - '.'
37                   - - {get_attr: [NovaCompute0, show, name]}
38                     - 'local'
39   NovaCompute0:
40     type: FileInclude
41     Path: examples/scale_map2_hot.yaml
42     SubKey: resources.NovaCompute0