22d5751be7d294290229e12380b244c53acf7539
[sdc.git] /
1 heat_template_version: 2013-05-23
2
3 description: nested1
4
5 parameters:
6   p1:
7     type: string
8     description: UID of OAM network
9   p2:
10     type: string
11     description: UID of OAM network
12   security_group_name:
13     type: comma_delimited_list
14     description: CMAUI1, CMAUI2 server names
15   cmaui_names:
16     type: comma_delimited_list
17     description: CMAUI1, CMAUI2 server names
18   cmaui_image:
19     type: string
20     description: Image for CMAUI server
21   availability_zone_0:
22     type: string
23     label: availabilityzone name
24     description: availabilityzone name
25   cmaui_flavor:
26     type: string
27     description: Flavor for CMAUI server
28   cmaui_oam_ips:
29       type: string
30   packet_internal_network_name:
31       type: string
32   packet_external_network_name:
33       type: string
34   net:
35     type: string
36
37 resources:
38   cmaui_port_1:
39     type: OS::Neutron::Port
40     properties:
41       network: {get_resource: packet_internal_network}
42       replacement_policy: AUTO
43
44   cmaui_port_2:
45     type: OS::Neutron::Port
46     properties:
47       network: {get_resource: packet_external_network}
48       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
49       replacement_policy: AUTO
50
51   server_cmaui_1:
52     type: OS::Nova::Server
53     properties:
54       name: { get_param: [cmaui_names, 0]}
55       image: { get_param: cmaui_image }
56       availability_zone: { get_param: availability_zone_0 }
57       flavor: { get_param: cmaui_flavor }
58       networks:
59       - port: { get_resource: cmaui_port_1 }
60
61   server_cmaui_2:
62     type: OS::Nova::Server
63     properties:
64       name: { get_param: [cmaui_names, 1]}
65       image: { get_param: cmaui_image }
66       availability_zone: { get_param: availability_zone_0 }
67       flavor: { get_param: cmaui_flavor }
68       networks:
69       - port: { get_resource: cmaui_port_2 }
70
71   packet_internal_network:
72     type: OS::Neutron::Net
73     properties:
74       name:
75         get_param: packet_internal_network_name
76
77   packet_external_network:
78     type: OS::Neutron::Net
79     properties:
80       name:
81         get_param: packet_external_network_name