Merge "Fix deploy job goals to use 'deploy' goal"
[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             gateway_ip: 192.0.2.1
56             allocation_pools:
57                 - start: 192.0.2.2
58                   end: 192.0.2.50
59
60     vm_0_group:
61         type: "OS::Heat::ResourceGroup"
62         properties:
63             count: {get_param: vm_0_count}
64             resource_def:
65                 type: apex-server.yaml
66                 properties:
67                     job_name: {get_param: job_name}
68                     silo: {get_param: silo}
69                     index: "%index%"
70                     group: "0"
71                     vm_flavor: {get_param: vm_0_flavor}
72                     vm_image: {get_param: vm_0_image}
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
88     vm_2_group:
89         type: "OS::Heat::ResourceGroup"
90         properties:
91             count: {get_param: vm_2_count}
92             resource_def:
93                 type: apex-server.yaml
94                 properties:
95                     job_name: {get_param: job_name}
96                     silo: {get_param: silo}
97                     index: "%index%"
98                     group: "2"
99                     vm_flavor: {get_param: vm_2_flavor}
100                     vm_image: {get_param: vm_2_image}