Port all templates to HOT
[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               - - Fn::Select:
34                   - 0
35                   - Fn::Select:
36                     - ctlplane
37                     - get_attr:
38                       - NovaCompute0
39                       - networks
40                 - Fn::Select:
41                   - name
42                   - get_attr:
43                     - NovaCompute0
44                     - show
45                 - list_join:
46                   - '.'
47                   - - Fn::Select:
48                       - name
49                       - get_attr:
50                         - NovaCompute0
51                         - show
52                     - 'local'
53   NovaCompute0:
54     type: FileInclude
55     Path: examples/scale_map2_hot.yaml
56     SubKey: resources.NovaCompute0