8dedd74d67e6ae78a41481737bd50151424cbdfa
[releng/builder.git] / openstack-hot / csit-apex-3-instance-type.yaml
1 ---
2 heat_template_version: 2016-04-08
3
4 parameters:
5     job_name:
6         type: string
7         description: Name of job running this template
8     silo:
9         type: string
10         description: Jenkins Silo job is running in (typically releng|sandbox)
11     vm_0_count:
12         type: number
13         description: Number of VMs for 1st VM type
14     vm_0_flavor:
15         type: string
16         default: v1-standard-1
17         description: Flavor to run instance on for 1st VM type
18     vm_0_image:
19         type: string
20         description: Image to run instance on for 1st VM type
21     vm_1_count:
22         type: number
23         description: Number of VMs for 2nd VM type
24     vm_1_flavor:
25         type: string
26         default: v1-standard-1
27         description: Flavor to run instance on for 2nd VM type
28     vm_1_image:
29         type: string
30         description: Image to run instance on for 2nd VM type
31     vm_2_count:
32         type: number
33         description: Number of VMs for 3rd VM type
34     vm_2_flavor:
35         type: string
36         default: v1-standard-1
37         description: Flavor to run instance on for 3rd VM type
38     vm_2_image:
39         type: string
40
41 resources:
42
43     192_network:
44         type: OS::Neutron::Net
45         properties:
46             name: APEX_192_network
47             port_security_enabled: false
48
49     192_subnet:
50         type: OS::Neutron::Subnet
51         properties:
52             name: APEX_192_subnet
53             network_id: {get_resource: 192_network}
54             cidr: 192.0.2.0/24
55             allocation_pools:
56                 - start: 192.0.2.2
57                   end: 192.0.2.50
58
59     vm_0_group:
60         type: "OS::Heat::ResourceGroup"
61         properties:
62             count: {get_param: vm_0_count}
63             resource_def:
64                 type: apex-server.yaml
65                 properties:
66                     job_name: {get_param: job_name}
67                     silo: {get_param: silo}
68                     index: "%index%"
69                     group: "0"
70                     vm_flavor: {get_param: vm_0_flavor}
71                     vm_image: {get_param: vm_0_image}
72                     vm_network: {get_resource: 192_network}
73
74     vm_1_group:
75         type: "OS::Heat::ResourceGroup"
76         properties:
77             count: {get_param: vm_1_count}
78             resource_def:
79                 type: apex-server.yaml
80                 properties:
81                     job_name: {get_param: job_name}
82                     silo: {get_param: silo}
83                     index: "%index%"
84                     group: "1"
85                     vm_flavor: {get_param: vm_1_flavor}
86                     vm_image: {get_param: vm_1_image}
87                     vm_network: {get_resource: 192_network}
88
89     vm_2_group:
90         type: "OS::Heat::ResourceGroup"
91         properties:
92             count: {get_param: vm_2_count}
93             resource_def:
94                 type: apex-server.yaml
95                 properties:
96                     job_name: {get_param: job_name}
97                     silo: {get_param: silo}
98                     index: "%index%"
99                     group: "2"
100                     vm_flavor: {get_param: vm_2_flavor}
101                     vm_image: {get_param: vm_2_image}
102                     vm_network: {get_resource: 192_network}