Revert "Disable lacp validate autorelease job"
[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: 1 GB General Purpose v1
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: 1 GB General Purpose v1
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                     vm_flavor: {get_param: vm_0_flavor}
45                     vm_image: {get_param: vm_0_image}
46
47     vm_1_group:
48         type: "OS::Heat::ResourceGroup"
49         properties:
50             count: {get_param: vm_1_count}
51             resource_def:
52                 type: generic-server.yaml
53                 properties:
54                     job_name: {get_param: job_name}
55                     silo: {get_param: silo}
56                     ssh_key: {get_param: silo}
57                     index: "%index%"
58                     vm_flavor: {get_param: vm_1_flavor}
59                     vm_image: {get_param: vm_1_image}
60
61 outputs:
62     vm_0_ips:
63         description: IP addresses of the 1st vm types
64         value: {get_attr: [vm_0_group, ip]}
65     vm_1_ips:
66         description: IP addresses of the 2nd vm types
67         value: {get_attr: [vm_1_group, ip]}