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