Merge "Provide manage_service to neutron::agents::ml2::ovs"
[apex-tripleo-heat-templates.git] / examples / scale_result_hot.yaml
1 description: examples/scale1_hot.yaml
2 heat_template_version: '2014-10-16'
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             get_attr:
46             - NovaCompute0
47             - networks
48             - ctlplane
49             - 0
50       os-collect-config:
51         cfn:
52           access_key_id:
53             get_resource: NovaCompute0Key
54           path: NovaCompute0Config.Metadata
55           secret_access_key:
56             get_attr:
57             - NovaCompute0Key
58             - SecretAccessKey
59           stack_name:
60             get_param: AWS::StackName
61       rabbit:
62         password: guest
63         username: guest
64     type: AWS::AutoScaling::LaunchConfiguration
65   NovaCompute0Key:
66     properties:
67       UserName:
68         get_param: ComputeUser
69     type: AWS::IAM::AccessKey
70   NovaCompute1:
71     metadata:
72       os-collect-config:
73         cfn:
74           access_key_id:
75             get_resource: NovaCompute1Key
76           path: NovaCompute1Config.Metadata
77           secret_access_key:
78             get_attr:
79             - NovaCompute1Key
80             - SecretAccessKey
81           stack_name:
82             get_param: AWS::StackName
83     properties:
84       image:
85         get_param: ComputeImage
86     type: OS::Nova::Server
87   NovaCompute1CompletionCondition:
88     depends_on: notcompute
89     properties:
90       Count: '1'
91       Handle:
92         get_resource: NovaCompute1CompletionHandle
93       Timeout: '1800'
94     type: AWS::CloudFormation::WaitCondition
95   NovaCompute1CompletionHandle:
96     type: AWS::CloudFormation::WaitConditionHandle
97   NovaCompute1Config:
98     metadata:
99       completion-handle:
100         get_resource: NovaCompute1CompletionHandle
101       neutron:
102         ovs:
103           local_ip:
104             get_attr:
105             - NovaCompute1
106             - networks
107             - ctlplane
108             - 0
109       os-collect-config:
110         cfn:
111           access_key_id:
112             get_resource: NovaCompute1Key
113           path: NovaCompute1Config.Metadata
114           secret_access_key:
115             get_attr:
116             - NovaCompute1Key
117             - SecretAccessKey
118           stack_name:
119             get_param: AWS::StackName
120       rabbit:
121         password: guest
122         username: guest
123     type: AWS::AutoScaling::LaunchConfiguration
124   NovaCompute1Key:
125     properties:
126       UserName:
127         get_param: ComputeUser
128     type: AWS::IAM::AccessKey
129   NovaCompute2:
130     metadata:
131       os-collect-config:
132         cfn:
133           access_key_id:
134             get_resource: NovaCompute2Key
135           path: NovaCompute2Config.Metadata
136           secret_access_key:
137             get_attr:
138             - NovaCompute2Key
139             - SecretAccessKey
140           stack_name:
141             get_param: AWS::StackName
142     properties:
143       image:
144         get_param: ComputeImage
145     type: OS::Nova::Server
146   NovaCompute2CompletionCondition:
147     depends_on: notcompute
148     properties:
149       Count: '1'
150       Handle:
151         get_resource: NovaCompute2CompletionHandle
152       Timeout: '1800'
153     type: AWS::CloudFormation::WaitCondition
154   NovaCompute2CompletionHandle:
155     type: AWS::CloudFormation::WaitConditionHandle
156   NovaCompute2Config:
157     metadata:
158       completion-handle:
159         get_resource: NovaCompute2CompletionHandle
160       neutron:
161         ovs:
162           local_ip:
163             get_attr:
164             - NovaCompute2
165             - networks
166             - ctlplane
167             - 0
168       os-collect-config:
169         cfn:
170           access_key_id:
171             get_resource: NovaCompute2Key
172           path: NovaCompute2Config.Metadata
173           secret_access_key:
174             get_attr:
175             - NovaCompute2Key
176             - SecretAccessKey
177           stack_name:
178             get_param: AWS::StackName
179       rabbit:
180         password: guest
181         username: guest
182     type: AWS::AutoScaling::LaunchConfiguration
183   NovaCompute2Key:
184     properties:
185       UserName:
186         get_param: ComputeUser
187     type: AWS::IAM::AccessKey