Remove table miss flow feature from test
[releng/builder.git] / openstack-hot / csit-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: 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     vm_2_count:
32         type: number
33         description: Number of VMs for 3rd VM type
34     vm_2_flavor:
35         type: string
36         default: 1 GB General Purpose v1
37         description: Flavor to run instance on for 3rd VM type
38     vm_2_image:
39         type: string
40
41 resources:
42     vm_0_group:
43         type: "OS::Heat::ResourceGroup"
44         properties:
45             count: {get_param: vm_0_count}
46             resource_def:
47                 type: generic-server.yaml
48                 properties:
49                     job_name: {get_param: job_name}
50                     silo: {get_param: silo}
51                     ssh_key: {get_param: silo}
52                     index: "%index%"
53                     vm_flavor: {get_param: vm_0_flavor}
54                     vm_image: {get_param: vm_0_image}
55
56     vm_1_group:
57         type: "OS::Heat::ResourceGroup"
58         properties:
59             count: {get_param: vm_1_count}
60             resource_def:
61                 type: generic-server.yaml
62                 properties:
63                     job_name: {get_param: job_name}
64                     silo: {get_param: silo}
65                     ssh_key: {get_param: silo}
66                     index: "%index%"
67                     vm_flavor: {get_param: vm_1_flavor}
68                     vm_image: {get_param: vm_1_image}
69
70     vm_2_group:
71         type: "OS::Heat::ResourceGroup"
72         properties:
73             count: {get_param: vm_2_count}
74             resource_def:
75                 type: generic-server.yaml
76                 properties:
77                     job_name: {get_param: job_name}
78                     silo: {get_param: silo}
79                     ssh_key: {get_param: silo}
80                     index: "%index%"
81                     vm_flavor: {get_param: vm_2_flavor}
82                     vm_image: {get_param: vm_2_image}
83
84 outputs:
85     vm_0_ips:
86         description: IP addresses of the 1st vm types
87         value: {get_attr: [vm_0_group, ip]}
88     vm_1_ips:
89         description: IP addresses of the 2nd vm types
90         value: {get_attr: [vm_1_group, ip]}
91     vm_2_ips:
92         description: IP addresses of the 3rd vm types
93         value: {get_attr: [vm_2_group, ip]}