-
Notifications
You must be signed in to change notification settings - Fork 0
/
spin_600.yaml
52 lines (46 loc) · 1.26 KB
/
spin_600.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
heat_template_version: 2013-05-23
description: >
This template will provision the minimum number of required nodes, as well
it will setup all of the required lbaas vips.
parameters:
resource_count:
type: number
default: 60
constraints:
- range: { min: 10, max: 600 }
description: "Must be an integer between 10 and 600"
resources:
private_net:
type: "OS::Neutron::Net"
private_subnet:
type: "OS::Neutron::Subnet"
properties:
network_id: { get_resource: private_net }
cidr: "10.100.100.0/22"
test_servers:
type: "OS::Heat::ResourceGroup"
properties:
count: { get_param: resource_count }
resource_def:
type: "OS::Nova::Server"
properties:
flavor: m1.small
image: ubuntu-server-14.04
key_name: shep
networks:
- network: { get_resource: private_net }
user_data: |
#!/bin/bash
apt-get install -y wget
final_server:
type: "OS::Nova::Server"
depends_on: [ test_servers ]
properties:
flavor: m1.small
image: ubuntu-server-14.04
key_name: shep
networks:
- network: { get_resource: private_net }
user_data: |
#!/bin/bash
apt-get install -y wget