increase transportpce tox timeout
[releng/builder.git] / openstack-hot / apex-server.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         default: vm
11         description: |
12             String to identify a Jenkins Master
13
14             Useful in scenarios where multiple Jenkins Masters might be
15             creating VMs in the same cloud to uniquely distinguish them.
16
17             TODO we should move to using tags once OpenStack Ocata which is
18             available to us with support for server tags properties.
19     index:
20         type: number
21     group:
22         type: number
23         default: "0"
24     vm_flavor:
25         type: string
26         default: v1-standard-4
27         description: OpenStack Flavor to use
28     vm_image:
29         type: string
30         description: VM Image to spin up
31     vm_network:
32         type: string
33         description: VM network
34
35 resources:
36     instance:
37         type: "OS::Nova::Server"
38         properties:
39             image: {get_param: vm_image}
40             flavor: {get_param: vm_flavor}
41             name:
42                 str_replace:
43                     template: SILO-JOB_NAME-GROUP-VM_TYPE-INDEX
44                     params:
45                         "SILO": {get_param: silo}
46                         "JOB_NAME": {get_param: job_name}
47                         "VM_TYPE":
48                             str_split:
49                                 - ' - '
50                                 - {get_param: vm_image}
51                                 - 2
52                         "GROUP": {get_param: group}
53                         "INDEX": {get_param: index}
54             networks:
55                 - network: {get_param: vm_network}