merge.py --hot to process and generate HOT
[apex-tripleo-heat-templates.git] / examples / scale_result_hot.yaml
1 description: examples/scale1_hot.yaml
2 heat_template_version: '2013-05-23'
3 resources:
4   ComputeUser:
5     properties:
6       Policies:
7       - get_param: ComputeAccessPolicy
8     type: AWS::IAM::User
9   GlobalAccessPolicy:
10     type: OS::Heat::AccessPolicy
11   NovaCompute0:
12     metadata:
13       os-collect-config:
14         cfn:
15           access_key_id:
16             get_resource: NovaCompute0Key
17           path: NovaCompute0Config.Metadata
18           secret_access_key:
19             get_attr:
20             - NovaCompute0Key
21             - SecretAccessKey
22           stack_name:
23             get_param: AWS::StackName
24     properties:
25       image:
26         get_param: ComputeImage
27     type: OS::Nova::Server
28   NovaCompute0CompletionCondition:
29     depends_on: notcompute
30     properties:
31       Count: '1'
32       Handle:
33         get_resource: NovaCompute0CompletionHandle
34       Timeout: '1800'
35     type: AWS::CloudFormation::WaitCondition
36   NovaCompute0CompletionHandle:
37     type: AWS::CloudFormation::WaitConditionHandle
38   NovaCompute0Config:
39     metadata:
40       completion-handle:
41         get_resource: NovaCompute0CompletionHandle
42       neutron:
43         ovs:
44           local_ip:
45             Fn::Select:
46             - 0
47             - Fn::Select:
48               - ctlplane
49               - get_attr:
50                 - NovaCompute0
51                 - networks
52       os-collect-config:
53         cfn:
54           access_key_id:
55             get_resource: NovaCompute0Key
56           path: NovaCompute0Config.Metadata
57           secret_access_key:
58             get_attr:
59             - NovaCompute0Key
60             - SecretAccessKey
61           stack_name:
62             get_param: AWS::StackName
63       rabbit:
64         password: guest
65         username: guest
66     type: AWS::AutoScaling::LaunchConfiguration
67   NovaCompute0Key:
68     properties:
69       UserName:
70         get_param: ComputeUser
71     type: AWS::IAM::AccessKey
72   NovaCompute1:
73     metadata:
74       os-collect-config:
75         cfn:
76           access_key_id:
77             get_resource: NovaCompute1Key
78           path: NovaCompute1Config.Metadata
79           secret_access_key:
80             get_attr:
81             - NovaCompute1Key
82             - SecretAccessKey
83           stack_name:
84             get_param: AWS::StackName
85     properties:
86       image:
87         get_param: ComputeImage
88     type: OS::Nova::Server
89   NovaCompute1CompletionCondition:
90     depends_on: notcompute
91     properties:
92       Count: '1'
93       Handle:
94         get_resource: NovaCompute1CompletionHandle
95       Timeout: '1800'
96     type: AWS::CloudFormation::WaitCondition
97   NovaCompute1CompletionHandle:
98     type: AWS::CloudFormation::WaitConditionHandle
99   NovaCompute1Config:
100     metadata:
101       completion-handle:
102         get_resource: NovaCompute1CompletionHandle
103       neutron:
104         ovs:
105           local_ip:
106             Fn::Select:
107             - 0
108             - Fn::Select:
109               - ctlplane
110               - get_attr:
111                 - NovaCompute1
112                 - networks
113       os-collect-config:
114         cfn:
115           access_key_id:
116             get_resource: NovaCompute1Key
117           path: NovaCompute1Config.Metadata
118           secret_access_key:
119             get_attr:
120             - NovaCompute1Key
121             - SecretAccessKey
122           stack_name:
123             get_param: AWS::StackName
124       rabbit:
125         password: guest
126         username: guest
127     type: AWS::AutoScaling::LaunchConfiguration
128   NovaCompute1Key:
129     properties:
130       UserName:
131         get_param: ComputeUser
132     type: AWS::IAM::AccessKey
133   NovaCompute2:
134     metadata:
135       os-collect-config:
136         cfn:
137           access_key_id:
138             get_resource: NovaCompute2Key
139           path: NovaCompute2Config.Metadata
140           secret_access_key:
141             get_attr:
142             - NovaCompute2Key
143             - SecretAccessKey
144           stack_name:
145             get_param: AWS::StackName
146     properties:
147       image:
148         get_param: ComputeImage
149     type: OS::Nova::Server
150   NovaCompute2CompletionCondition:
151     depends_on: notcompute
152     properties:
153       Count: '1'
154       Handle:
155         get_resource: NovaCompute2CompletionHandle
156       Timeout: '1800'
157     type: AWS::CloudFormation::WaitCondition
158   NovaCompute2CompletionHandle:
159     type: AWS::CloudFormation::WaitConditionHandle
160   NovaCompute2Config:
161     metadata:
162       completion-handle:
163         get_resource: NovaCompute2CompletionHandle
164       neutron:
165         ovs:
166           local_ip:
167             Fn::Select:
168             - 0
169             - Fn::Select:
170               - ctlplane
171               - get_attr:
172                 - NovaCompute2
173                 - networks
174       os-collect-config:
175         cfn:
176           access_key_id:
177             get_resource: NovaCompute2Key
178           path: NovaCompute2Config.Metadata
179           secret_access_key:
180             get_attr:
181             - NovaCompute2Key
182             - SecretAccessKey
183           stack_name:
184             get_param: AWS::StackName
185       rabbit:
186         password: guest
187         username: guest
188     type: AWS::AutoScaling::LaunchConfiguration
189   NovaCompute2Key:
190     properties:
191       UserName:
192         get_param: ComputeUser
193     type: AWS::IAM::AccessKey