Remove unused views
[releng/builder.git] / openstack-hot / csit-2-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
32 resources:
33     vm_0_group:
34         type: "OS::Heat::ResourceGroup"
35         properties:
36             count: {get_param: vm_0_count}
37             resource_def:
38                 type: generic-server.yaml
39                 properties:
40                     job_name: {get_param: job_name}
41                     silo: {get_param: silo}
42                     ssh_key: {get_param: silo}
43                     index: "%index%"
44                     group: "0"
45                     vm_flavor: {get_param: vm_0_flavor}
46                     vm_image: {get_param: vm_0_image}
47
48     vm_1_group:
49         type: "OS::Heat::ResourceGroup"
50         properties:
51             count: {get_param: vm_1_count}
52             resource_def:
53                 type: generic-server.yaml
54                 properties:
55                     job_name: {get_param: job_name}
56                     silo: {get_param: silo}
57                     ssh_key: {get_param: silo}
58                     index: "%index%"
59                     group: "1"
60                     vm_flavor: {get_param: vm_1_flavor}
61                     vm_image: {get_param: vm_1_image}
62
63 outputs:
64     vm_0_ips:
65         description: IP addresses of the 1st vm types
66         value: {get_attr: [vm_0_group, ip]}
67     vm_1_ips:
68         description: IP addresses of the 2nd vm types
69         value: {get_attr: [vm_1_group, ip]}