[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / singleSubstitution / threeDiffComputesWithAllConnectivities / in / hot-mog-0108-bs1271.yml
1 heat_template_version: 2013-05-23
2
3 description: heat template that creates MOG stack
4
5 parameters:
6   pd_server_names:
7     type: comma_delimited_list
8     label: PD server names
9     description: name of the PD instance
10   pd_image_name:
11     type: string
12     label: image name
13     description: PD image name
14   pd_flavor_name:
15     type: string
16     label: PD flavor name
17     description: flavor name of PD instance
18   oam_server_names:
19     type: comma_delimited_list
20     label: OAM server names
21     description: name of the OAM instance
22   oam_image_name:
23     type: string
24     label: image name
25     description: OAM image name
26   oam_flavor_name:
27     type: string
28     label: OAM flavor name
29     description: flavor name of OAM instance
30   sm_server_names:
31     type: comma_delimited_list
32     label: SM server names
33     description: name of the SM instance
34   sm_image_name:
35     type: string
36     label: image name
37     description: SM image name
38   sm_flavor_name:
39     type: string
40     label: SM flavor name
41     description: flavor name of SM instance
42   ps_server_names:
43     type: comma_delimited_list
44     label: PS server names
45     description: name of the PS instance
46   ps_image_name:
47     type: string
48     label: PS image name
49     description: PS image name
50   ps_flavor_name:
51     type: string
52     label: PS flavor name
53     description: flavor name of PS instance
54   cm_server_names:
55     type: comma_delimited_list
56     label: CM server names
57     description: name of the CM instance
58   cm_image_name:
59     type: string
60     label: image name
61     description: CM image name
62   cm_flavor_name:
63     type: string
64     label: CM flavor name
65     description: flavor name of CM instance
66   availabilityzone_name:
67     type: string
68     label: availabilityzone name
69     description: availabilityzone name
70   oam_net_name:
71     type: string
72     label: oam network name
73     description: name of the oam network
74   oam_net_ips:
75     type: comma_delimited_list
76     label: internet network ips
77     description: ip of the OAM network
78   dummy_net_name_1:
79     type: string
80     label: csb ineternal cidr
81     description: csb internal cidr
82   packet_mirror_network_name:
83     type: string
84     label: packet mirror network name
85     description: name of the network
86   VMME_ps_boot_volume:
87     type: string
88   VMME_pd_boot_volume:
89     type: string
90   VMME_oam_boot_volume:
91     type: string
92
93 resources:
94   server_ps_01:
95     type: OS::Nova::Server
96     depends_on:
97       - packet_mirror_network
98     properties:
99 #      config_drive: "True"
100       name: {get_param: [ps_server_names, 0]}
101       image: {get_param: pd_image_name}
102       flavor: {get_attr: [network_policy_server, name]}
103       availability_zone: {get_param: availabilityzone_name}
104       scheduler_hints: { group: { get_resource: BE_Affinity }}
105       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_ps_boot_volume }, delete_on_termination: "false" }]
106       networks:
107         - port: {get_resource: pd01_port_0}
108       user_data_format:  RAW
109
110   server_pd_01:
111     type: OS::Nova::Server
112     depends_on:
113       - packet_mirror_network
114     properties:
115 #      config_drive: "True"
116       name: {get_param: [pd_server_names, 0]}
117       image: {get_param: pd_image_name}
118       flavor: {get_attr: [network_policy_server, name]}
119       availability_zone: {get_param: availabilityzone_name}
120       scheduler_hints: { group: { get_resource: BE_Affinity }}
121       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_pd_boot_volume }, delete_on_termination: "false" }]
122       networks:
123         - port: {get_resource: pd01_port_1}
124       user_data_format:  RAW
125
126   server_oam_01:
127     type: OS::Nova::Server
128     depends_on:
129       - packet_mirror_network
130     properties:
131 #      config_drive: "True"
132       name: {get_param: [oam_server_names, 0]}
133       image: {get_param: pd_image_name}
134       flavor: {get_attr: [network_policy_server, name]}
135       availability_zone: {get_param: availabilityzone_name}
136       scheduler_hints: { group: { get_resource: BE_Affinity }}
137       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_oam_boot_volume }, delete_on_termination: "false" }]
138       networks:
139         - port: {get_resource: pd01_port_2}
140       user_data_format:  RAW
141
142   pd01_port_0:
143     type: OS::Neutron::Port
144     properties:
145       network: {get_attr: [network_policy_server, name]}
146       security_groups: [{get_resource: jsa_security_group}]
147
148   pd01_port_1:
149     type: OS::Neutron::Port
150     properties:
151       network: {get_param: oam_net_name}
152       security_groups: [{get_resource: jsa_security_group}]
153
154   pd01_port_2:
155     type: OS::Neutron::Port
156     properties:
157       network: {get_param: oam_net_name}
158       security_groups: [{get_resource: jsa_security_group}]
159
160   network_policy_server:
161     type: OS::Contrail::NetworkPolicy
162     properties:
163       name: {get_param: dummy_net_name_1}
164
165   resources_with_dependOn:
166     type: OS::Neutron::Net
167     depends_on:
168       - server_oam_01
169       - server_pd_01
170       - server_ps_01
171
172   packet_mirror_network:
173     type: OS::Neutron::Net
174     properties:
175       name:
176         get_param: packet_mirror_network_name
177
178   BE_Affinity:
179     type: OS::Nova::ServerGroup
180     properties:
181       policies: ["affinity"]
182       name: def
183
184   jsa_security_group:
185     type: OS::Neutron::SecurityGroup
186     properties:
187       description: ems security group
188       name: Test-SecurityGroup
189       rules: [{"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}]
190
191
192   network_policy_server_pd:
193     type: OS::Contrail::NetworkPolicy
194     properties:
195       name: {get_attr: [server_pd_01, accessIPv4]}
196
197   network_policy_server_ps:
198     type: OS::Contrail::NetworkPolicy
199     properties:
200       name: {get_attr: [server_ps_01, accessIPv4]}
201
202   network_policy_server_oam:
203     type: OS::Contrail::NetworkPolicy
204     properties:
205       name: {get_attr: [server_oam_01, accessIPv4]}
206
207 outputs:
208   out1:
209       description: output_regula
210       value: {get_attr: [server_pd_01, accessIPv4]}
211   out2:
212       description: output_regula
213       value: {get_attr: [server_ps_01, accessIPv4]}
214   out3:
215       description: output_regula
216       value: {get_attr: [server_oam_01, accessIPv4]}
217   out4:
218       description: output_regula
219       value: {get_attr: [pd01_port_1, device_owner]}
220   out5:
221       description: output_regula
222       value:
223         get_attr: [pd01_port_0, device_id]
224