Merge "Provide manage_service to neutron::agents::ml2::ovs"
[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         username: guest
66     Type: AWS::AutoScaling::LaunchConfiguration
67   NovaCompute0Key:
68     Properties:
69       UserName:
70         Ref: ComputeUser
71     Type: AWS::IAM::AccessKey
72   NovaCompute1:
73     Metadata:
74       os-collect-config:
75         cfn:
76           access_key_id:
77             Ref: NovaCompute1Key
78           path: NovaCompute1Config.Metadata
79           secret_access_key:
80             Fn::GetAtt:
81             - NovaCompute1Key
82             - SecretAccessKey
83           stack_name:
84             Ref: AWS::StackName
85     Properties:
86       image:
87         Ref: ComputeImage
88     Type: OS::Nova::Server
89   NovaCompute1CompletionCondition:
90     DependsOn: notcompute
91     Properties:
92       Count: '1'
93       Handle:
94         Ref: NovaCompute1CompletionHandle
95       Timeout: '1800'
96     Type: AWS::CloudFormation::WaitCondition
97   NovaCompute1CompletionHandle:
98     Type: AWS::CloudFormation::WaitConditionHandle
99   NovaCompute1Config:
100     Metadata:
101       completion-handle:
102         Ref: NovaCompute1CompletionHandle
103       neutron:
104         ovs:
105           local_ip:
106             Fn::Select:
107             - 0
108             - Fn::Select:
109               - ctlplane
110               - Fn::GetAtt:
111                 - NovaCompute1
112                 - networks
113       os-collect-config:
114         cfn:
115           access_key_id:
116             Ref: NovaCompute1Key
117           path: NovaCompute1Config.Metadata
118           secret_access_key:
119             Fn::GetAtt:
120             - NovaCompute1Key
121             - SecretAccessKey
122           stack_name:
123             Ref: AWS::StackName
124       rabbit:
125         password: guest
126         username: guest
127     Type: AWS::AutoScaling::LaunchConfiguration
128   NovaCompute1Key:
129     Properties:
130       UserName:
131         Ref: ComputeUser
132     Type: AWS::IAM::AccessKey
133   NovaCompute2:
134     Metadata:
135       os-collect-config:
136         cfn:
137           access_key_id:
138             Ref: NovaCompute2Key
139           path: NovaCompute2Config.Metadata
140           secret_access_key:
141             Fn::GetAtt:
142             - NovaCompute2Key
143             - SecretAccessKey
144           stack_name:
145             Ref: AWS::StackName
146     Properties:
147       image:
148         Ref: ComputeImage
149     Type: OS::Nova::Server
150   NovaCompute2CompletionCondition:
151     DependsOn: notcompute
152     Properties:
153       Count: '1'
154       Handle:
155         Ref: NovaCompute2CompletionHandle
156       Timeout: '1800'
157     Type: AWS::CloudFormation::WaitCondition
158   NovaCompute2CompletionHandle:
159     Type: AWS::CloudFormation::WaitConditionHandle
160   NovaCompute2Config:
161     Metadata:
162       completion-handle:
163         Ref: NovaCompute2CompletionHandle
164       neutron:
165         ovs:
166           local_ip:
167             Fn::Select:
168             - 0
169             - Fn::Select:
170               - ctlplane
171               - Fn::GetAtt:
172                 - NovaCompute2
173                 - networks
174       os-collect-config:
175         cfn:
176           access_key_id:
177             Ref: NovaCompute2Key
178           path: NovaCompute2Config.Metadata
179           secret_access_key:
180             Fn::GetAtt:
181             - NovaCompute2Key
182             - SecretAccessKey
183           stack_name:
184             Ref: AWS::StackName
185       rabbit:
186         password: guest
187         username: guest
188     Type: AWS::AutoScaling::LaunchConfiguration
189   NovaCompute2Key:
190     Properties:
191       UserName:
192         Ref: ComputeUser
193     Type: AWS::IAM::AccessKey