Start ssh properly for Ubuntu
[samplevnf.git] / heat_template / cgnapt_heat_tenant.yaml
1 {
2     "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 19:41:19.\nAll referred generated resources are prefixed with the template\nname (i.e. cgnapt).",
3     "heat_template_version": "2013-05-23",
4     "outputs": {
5         "cgnapt.cgnapt": {
6             "description": "VM UUID",
7             "value": {
8                 "get_resource": "cgnapt.cgnapt"
9             }
10         },
11         "cgnapt.cgnapt-fip": {
12             "description": "floating ip cgnapt.cgnapt-fip",
13             "value": {
14                 "get_attr": [
15                     "cgnapt.cgnapt-fip",
16                     "ip"
17                 ]
18             }
19         },
20         "cgnapt.cgnapt-mgmt-port": {
21             "description": "Address for interface cgnapt.cgnapt-mgmt-port",
22             "value": {
23                 "get_attr": [
24                     "cgnapt.cgnapt-mgmt-port",
25                     "fixed_ips",
26                     0,
27                     "ip_address"
28                 ]
29             }
30         },
31         "cgnapt.cgnapt-mgmt-port-device_id": {
32             "description": "Device ID for interface cgnapt.cgnapt-mgmt-port",
33             "value": {
34                 "get_attr": [
35                     "cgnapt.cgnapt-mgmt-port",
36                     "device_id"
37                 ]
38             }
39         },
40         "cgnapt.cgnapt-mgmt-port-mac_address": {
41             "description": "MAC Address for interface cgnapt.cgnapt-mgmt-port",
42             "value": {
43                 "get_attr": [
44                     "cgnapt.cgnapt-mgmt-port",
45                     "mac_address"
46                 ]
47             }
48         },
49         "cgnapt.cgnapt-mgmt-port-network_id": {
50             "description": "Network ID for interface cgnapt.cgnapt-mgmt-port",
51             "value": {
52                 "get_attr": [
53                     "cgnapt.cgnapt-mgmt-port",
54                     "network_id"
55                 ]
56             }
57         },
58         "cgnapt.cgnapt-mgmt-port-subnet_id": {
59             "description": "Address for interface cgnapt.cgnapt-mgmt-port",
60             "value": {
61                 "get_attr": [
62                     "cgnapt.cgnapt-mgmt-port",
63                     "fixed_ips",
64                     0,
65                     "subnet_id"
66                 ]
67             }
68         },
69         "cgnapt.cgnapt-xe0-port": {
70             "description": "Address for interface cgnapt.cgnapt-xe0-port",
71             "value": {
72                 "get_attr": [
73                     "cgnapt.cgnapt-xe0-port",
74                     "fixed_ips",
75                     0,
76                     "ip_address"
77                 ]
78             }
79         },
80         "cgnapt.cgnapt-xe0-port-device_id": {
81             "description": "Device ID for interface cgnapt.cgnapt-xe0-port",
82             "value": {
83                 "get_attr": [
84                     "cgnapt.cgnapt-xe0-port",
85                     "device_id"
86                 ]
87             }
88         },
89         "cgnapt.cgnapt-xe0-port-mac_address": {
90             "description": "MAC Address for interface cgnapt.cgnapt-xe0-port",
91             "value": {
92                 "get_attr": [
93                     "cgnapt.cgnapt-xe0-port",
94                     "mac_address"
95                 ]
96             }
97         },
98         "cgnapt.cgnapt-xe0-port-network_id": {
99             "description": "Network ID for interface cgnapt.cgnapt-xe0-port",
100             "value": {
101                 "get_attr": [
102                     "cgnapt.cgnapt-xe0-port",
103                     "network_id"
104                 ]
105             }
106         },
107         "cgnapt.cgnapt-xe0-port-subnet_id": {
108             "description": "Address for interface cgnapt.cgnapt-xe0-port",
109             "value": {
110                 "get_attr": [
111                     "cgnapt.cgnapt-xe0-port",
112                     "fixed_ips",
113                     0,
114                     "subnet_id"
115                 ]
116             }
117         },
118         "cgnapt.cgnapt-xe1-port": {
119             "description": "Address for interface cgnapt.cgnapt-xe1-port",
120             "value": {
121                 "get_attr": [
122                     "cgnapt.cgnapt-xe1-port",
123                     "fixed_ips",
124                     0,
125                     "ip_address"
126                 ]
127             }
128         },
129         "cgnapt.cgnapt-xe1-port-device_id": {
130             "description": "Device ID for interface cgnapt.cgnapt-xe1-port",
131             "value": {
132                 "get_attr": [
133                     "cgnapt.cgnapt-xe1-port",
134                     "device_id"
135                 ]
136             }
137         },
138         "cgnapt.cgnapt-xe1-port-mac_address": {
139             "description": "MAC Address for interface cgnapt.cgnapt-xe1-port",
140             "value": {
141                 "get_attr": [
142                     "cgnapt.cgnapt-xe1-port",
143                     "mac_address"
144                 ]
145             }
146         },
147         "cgnapt.cgnapt-xe1-port-network_id": {
148             "description": "Network ID for interface cgnapt.cgnapt-xe1-port",
149             "value": {
150                 "get_attr": [
151                     "cgnapt.cgnapt-xe1-port",
152                     "network_id"
153                 ]
154             }
155         },
156         "cgnapt.cgnapt-xe1-port-subnet_id": {
157             "description": "Address for interface cgnapt.cgnapt-xe1-port",
158             "value": {
159                 "get_attr": [
160                     "cgnapt.cgnapt-xe1-port",
161                     "fixed_ips",
162                     0,
163                     "subnet_id"
164                 ]
165             }
166         },
167         "cgnapt-flavor": {
168             "description": "Flavor cgnapt-flavor ID",
169             "value": {
170                 "get_resource": "cgnapt-flavor"
171             }
172         },
173         "cgnapt-mgmt-subnet": {
174             "description": "subnet cgnapt-mgmt-subnet ID",
175             "value": {
176                 "get_resource": "cgnapt-mgmt-subnet"
177             }
178         },
179         "cgnapt-mgmt-subnet-cidr": {
180             "description": "subnet cgnapt-mgmt-subnet cidr",
181             "value": {
182                 "get_attr": [
183                     "cgnapt-mgmt-subnet",
184                     "cidr"
185                 ]
186             }
187         },
188         "cgnapt-mgmt-subnet-gateway_ip": {
189             "description": "subnet cgnapt-mgmt-subnet gateway_ip",
190             "value": {
191                 "get_attr": [
192                     "cgnapt-mgmt-subnet",
193                     "gateway_ip"
194                 ]
195             }
196         },
197         "cgnapt-secgroup": {
198             "description": "ID of Security Group",
199             "value": {
200                 "get_resource": "cgnapt-secgroup"
201             }
202         },
203         "cgnapt-xe0-subnet": {
204             "description": "subnet cgnapt-xe0-subnet ID",
205             "value": {
206                 "get_resource": "cgnapt-xe0-subnet"
207             }
208         },
209         "cgnapt-xe0-subnet-cidr": {
210             "description": "subnet cgnapt-xe0-subnet cidr",
211             "value": {
212                 "get_attr": [
213                     "cgnapt-xe0-subnet",
214                     "cidr"
215                 ]
216             }
217         },
218         "cgnapt-xe0-subnet-gateway_ip": {
219             "description": "subnet cgnapt-xe0-subnet gateway_ip",
220             "value": {
221                 "get_attr": [
222                     "cgnapt-xe0-subnet",
223                     "gateway_ip"
224                 ]
225             }
226         },
227         "cgnapt-xe1-subnet": {
228             "description": "subnet cgnapt-xe1-subnet ID",
229             "value": {
230                 "get_resource": "cgnapt-xe1-subnet"
231             }
232         },
233         "cgnapt-xe1-subnet-cidr": {
234             "description": "subnet cgnapt-xe1-subnet cidr",
235             "value": {
236                 "get_attr": [
237                     "cgnapt-xe1-subnet",
238                     "cidr"
239                 ]
240             }
241         },
242         "cgnapt-xe1-subnet-gateway_ip": {
243             "description": "subnet cgnapt-xe1-subnet gateway_ip",
244             "value": {
245                 "get_attr": [
246                     "cgnapt-xe1-subnet",
247                     "gateway_ip"
248                 ]
249             }
250         }
251     },
252     "resources": {
253         "cgnapt.cgnapt": {
254             "depends_on": [
255                 "cgnapt-flavor",
256                 "cgnapt-key",
257                 "cgnapt.cgnapt-mgmt-port",
258                 "cgnapt.cgnapt-xe0-port",
259                 "cgnapt.cgnapt-xe1-port"
260             ],
261             "properties": {
262                 "admin_user": "ubuntu",
263                 "config_drive": true,
264                 "flavor": {
265                     "get_resource": "cgnapt-flavor"
266                 },
267                 "image": "yardstick-samplevnfs",
268                 "key_name": {
269                     "get_resource": "cgnapt-key"
270                 },
271                 "name": "cgnapt.cgnapt",
272                 "networks": [
273                     {
274                         "port": {
275                             "get_resource": "cgnapt.cgnapt-mgmt-port"
276                         }
277                     },
278                     {
279                         "port": {
280                             "get_resource": "cgnapt.cgnapt-xe0-port"
281                         }
282                     },
283                     {
284                         "port": {
285                             "get_resource": "cgnapt.cgnapt-xe1-port"
286                         }
287                     }
288                 ]
289             },
290             "type": "OS::Nova::Server"
291         },
292         "cgnapt.cgnapt-fip": {
293             "depends_on": [
294                 "cgnapt.cgnapt-mgmt-port",
295                 "cgnapt-mgmt-router-if0",
296                 "cgnapt-secgroup"
297             ],
298             "properties": {
299                 "pool": "yardstick-public"
300             },
301             "type": "OS::Nova::FloatingIP"
302         },
303         "cgnapt.cgnapt-fip-assoc": {
304             "depends_on": [
305                 "cgnapt.cgnapt-mgmt-port"
306             ],
307             "properties": {
308                 "floatingip_id": {
309                     "get_resource": "cgnapt.cgnapt-fip"
310                 },
311                 "port_id": {
312                     "get_resource": "cgnapt.cgnapt-mgmt-port"
313                 }
314             },
315             "type": "OS::Neutron::FloatingIPAssociation"
316         },
317         "cgnapt.cgnapt-mgmt-port": {
318             "depends_on": [
319                 "cgnapt-mgmt-subnet",
320                 "cgnapt-secgroup"
321             ],
322             "properties": {
323                 "binding:vnic_type": "normal",
324                 "fixed_ips": [
325                     {
326                         "subnet": {
327                             "get_resource": "cgnapt-mgmt-subnet"
328                         }
329                     }
330                 ],
331                 "name": "cgnapt.cgnapt-mgmt-port",
332                 "network_id": {
333                     "get_resource": "cgnapt-mgmt"
334                 },
335                 "replacement_policy": "AUTO",
336                 "security_groups": [
337                     "cgnapt-secgroup"
338                 ]
339             },
340             "type": "OS::Neutron::Port"
341         },
342         "cgnapt.cgnapt-xe0-port": {
343             "depends_on": [
344                 "cgnapt-xe0-subnet"
345             ],
346             "properties": {
347                 "binding:vnic_type": "normal",
348                 "fixed_ips": [
349                     {
350                         "subnet": {
351                             "get_resource": "cgnapt-xe0-subnet"
352                         }
353                     }
354                 ],
355                 "name": "cgnapt.cgnapt-xe0-port",
356                 "network_id": {
357                     "get_resource": "cgnapt-xe0"
358                 },
359                 "replacement_policy": "AUTO"
360             },
361             "type": "OS::Neutron::Port"
362         },
363         "cgnapt.cgnapt-xe1-port": {
364             "depends_on": [
365                 "cgnapt-xe1-subnet"
366             ],
367             "properties": {
368                 "binding:vnic_type": "normal",
369                 "fixed_ips": [
370                     {
371                         "subnet": {
372                             "get_resource": "cgnapt-xe1-subnet"
373                         }
374                     }
375                 ],
376                 "name": "cgnapt.cgnapt-xe1-port",
377                 "network_id": {
378                     "get_resource": "cgnapt-xe1"
379                 },
380                 "replacement_policy": "AUTO"
381             },
382             "type": "OS::Neutron::Port"
383         },
384         "cgnapt-flavor": {
385             "properties": {
386                 "disk": 6,
387                 "ephemeral": 0,
388                 "extra_specs": {
389                     "hw:cpu_cores": 10,
390                     "hw:cpu_sockets": 1,
391                     "hw:cpu_threads": 1
392                 },
393                 "flavorid": "cgnapt-flavor",
394                 "is_public": true,
395                 "name": "cgnapt-flavor",
396                 "ram": 20480,
397                 "rxtx_factor": 1.0,
398                 "swap": 0,
399                 "vcpus": 10
400             },
401             "type": "OS::Nova::Flavor"
402         },
403         "cgnapt-key": {
404             "properties": {
405                 "name": "cgnapt-key",
406                 "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpNQ5/uWHvNfs9s5qqx9Nksx3g355aBKuCMwa/tWegva1F22qkTQas9JemZdMbURLntyo7ifYCKPkzWPo3yTY9zOOUD2Ugtuaq4FxuhJqo8WGB0TNQCbtWpoapFvRS0CoKj4GCXl3yVMZrFmTaB/Us326oQoxrdhcHUGxYQLuswdqSqDI/IOXnljRMEPT2KNvRjYI6R6yxeu673qCNpE12RgphCptp9uKUxvLnBmVJgfg4Sn1AzqF/p6Zk+CeyhtiGEDAyaVVvhCMcjsQpG7jkklWnE7ftDxbCvihQhl5amqxArk/MgJRAL6tGvVwKSpXibKhep1dwQVaFbowowxGB\n"
407             },
408             "type": "OS::Nova::KeyPair"
409         },
410         "cgnapt-mgmt": {
411             "properties": {
412                 "name": "cgnapt-mgmt"
413             },
414             "type": "OS::Neutron::Net"
415         },
416         "cgnapt-mgmt-router": {
417             "depends_on": [
418                 "cgnapt-mgmt-subnet"
419             ],
420             "properties": {
421                 "external_gateway_info": {
422                     "network": "yardstick-public"
423                 },
424                 "name": "cgnapt-mgmt-router"
425             },
426             "type": "OS::Neutron::Router"
427         },
428         "cgnapt-mgmt-router-if0": {
429             "depends_on": [
430                 "cgnapt-mgmt-router",
431                 "cgnapt-mgmt-subnet"
432             ],
433             "properties": {
434                 "router_id": {
435                     "get_resource": "cgnapt-mgmt-router"
436                 },
437                 "subnet_id": {
438                     "get_resource": "cgnapt-mgmt-subnet"
439                 }
440             },
441             "type": "OS::Neutron::RouterInterface"
442         },
443         "cgnapt-mgmt-subnet": {
444             "depends_on": "cgnapt-mgmt",
445             "properties": {
446                 "cidr": "10.0.1.0/24",
447                 "enable_dhcp": "true",
448                 "name": "cgnapt-mgmt-subnet",
449                 "network_id": {
450                     "get_resource": "cgnapt-mgmt"
451                 }
452             },
453             "type": "OS::Neutron::Subnet"
454         },
455         "cgnapt-secgroup": {
456             "properties": {
457                 "description": "Group allowing icmp and upd/tcp on all ports",
458                 "name": "cgnapt-secgroup",
459                 "rules": [
460                     {
461                         "port_range_max": "65535",
462                         "port_range_min": "1",
463                         "protocol": "tcp",
464                         "remote_ip_prefix": "0.0.0.0/0"
465                     },
466                     {
467                         "port_range_max": "65535",
468                         "port_range_min": "1",
469                         "protocol": "udp",
470                         "remote_ip_prefix": "0.0.0.0/0"
471                     },
472                     {
473                         "protocol": "icmp",
474                         "remote_ip_prefix": "0.0.0.0/0"
475                     }
476                 ]
477             },
478             "type": "OS::Neutron::SecurityGroup"
479         },
480         "cgnapt-xe0": {
481             "properties": {
482                 "name": "cgnapt-xe0",
483                 "port_security_enabled": false
484             },
485             "type": "OS::Neutron::Net"
486         },
487         "cgnapt-xe0-subnet": {
488             "depends_on": "cgnapt-xe0",
489             "properties": {
490                 "cidr": "10.0.2.0/24",
491                 "enable_dhcp": "false",
492                 "gateway_ip": null,
493                 "name": "cgnapt-xe0-subnet",
494                 "network_id": {
495                     "get_resource": "cgnapt-xe0"
496                 }
497             },
498             "type": "OS::Neutron::Subnet"
499         },
500         "cgnapt-xe1": {
501             "properties": {
502                 "name": "cgnapt-xe1",
503                 "port_security_enabled": false
504             },
505             "type": "OS::Neutron::Net"
506         },
507         "cgnapt-xe1-subnet": {
508             "depends_on": "cgnapt-xe1",
509             "properties": {
510                 "cidr": "10.0.3.0/24",
511                 "enable_dhcp": "false",
512                 "gateway_ip": null,
513                 "name": "cgnapt-xe1-subnet",
514                 "network_id": {
515                     "get_resource": "cgnapt-xe1"
516                 }
517             },
518             "type": "OS::Neutron::Subnet"
519         }
520     }
521 }