[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 / nestedSingleCompute / nestedNodesConnectedIn / in / hot-nimbus-pcm_v0.4.yaml
1 heat_template_version: 2013-05-23
2
3 description: heat template that creates PCRF Cluman stack
4
5 parameters:
6   shared_security_group_id1:
7       type: string
8       description: network name of jsa log network
9   shared_security_group_id2:
10       type: string
11       description: network name of jsa log network
12   pcm_server_names:
13     type: comma_delimited_list
14     label: PCRF CM server names
15     description: name of the PCRF CM instance
16   pcm_image_name:
17     type: string
18     label: PCRF CM image name
19     description: PCRF CM image name
20   pcm_flavor_name:
21     type: string
22     label: PCRF CM flavor name
23     description: flavor name of PCRF CM instance
24   oam_server_names:
25     type: comma_delimited_list
26     label: PCRF CM server names
27     description: name of the PCRF CM instance
28   oam_image_name:
29     type: string
30     label: PCRF CM image name
31     description: PCRF CM image name
32   oam_flavor_name:
33     type: string
34     label: PCRF CM flavor name
35     description: flavor name of PCRF CM instance
36   availabilityzone_name:
37     type: string
38     label: availabilityzone name
39     description: availabilityzone name
40   cps_net_name:
41     type: string
42     label: CPS network name
43     description: CPS network name
44   cps_net_ips:
45     type: comma_delimited_list
46     label: CPS network ips
47     description: CPS network ips
48   cps_net_mask:
49     type: string
50     label: CPS network mask
51     description: CPS network mask
52   oam_net_name:
53     type: string
54     label: OAM network name
55     description: OAM network name
56   oam_net_ips:
57     type: comma_delimited_list
58     label: OAM network ips
59     description: OAM network ips
60   oam_net_gw:
61     type: string
62     label: CPS network gateway
63     description: CPS network gateway
64   oam_net_mask:
65     type: string
66     label: CPS network mask
67     description: CPS network mask
68   pcm_volumes:
69     type: comma_delimited_list
70     label: CPS Cluman Cinder Volume
71     description: CPS Cluman Cinder Volume
72   security_group_name:
73     type: string
74     label: security group name
75     description: the name of security group
76   compute_image_name:
77     type: string
78   net_name:
79     type: string
80
81 resources:
82   server_compute:
83     type: OS::Nova::Server
84     properties:
85       config_drive: {get_attr: [compute_port_0]}
86       name: { compute_name }
87       image: { get_param: compute_image_name }
88       flavor: { compute_flavor_name }
89       user_data_format: { get_attr: [server_pcm_001 , oam_net_gw] }
90       metadata: { get_attr: [server_pcm_001]}
91
92   server_pcm_001:
93     type: nested-pcm_v0.1.yaml
94     depends_on:
95       - server_compute
96     properties:
97       pcm_server_name: { get_param: [pcm_server_names, 0] }
98       pcm_image_name: { get_param: pcm_image_name }
99       pcm_flavor_name: { get_param: pcm_flavor_name }
100       availabilityzone_name: { get_param: availabilityzone_name }
101       security_group_name: { get_param: security_group_name }
102       pcm_vol: { get_param: [pcm_volumes, 0] }
103       cps_net_name: { get_param: cps_net_name }
104       cps_net_ip: { get_param: [cps_net_ips, 0] }
105       cps_net_mask: { get_param: cps_net_mask }
106       oam_net_name: { get_param: oam_net_name }
107       oam_net_ip: { get_param: [oam_net_ips, 0] }
108       oam_net_mask: { get_param: oam_net_mask }
109       oam_net_gw: { get_param: oam_net_gw }
110
111   compute_port_0:
112     type: OS::Neutron::Port
113     properties:
114       network: { get_param: net_name }
115
116   jsa_security_group1:
117     type: OS::Neutron::SecurityGroup
118     properties:
119       description: ems security group
120       name: jsa_security_group1_name
121       rules: [{"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}]
122
123   jsa_security_group2:
124     type: OS::Neutron::SecurityGroup
125     properties:
126       description: ems security group
127       name: jsa_security_group2_name
128       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}]
129
130   server_pcm_002:
131     type: nested-pcm_v0.1.yaml
132     depends_on:
133       - server_pcm_001
134     properties:
135       p1: { get_resource: jsa_security_group1}
136       p2: { get_resource: jsa_security_group2}
137       pcm_server_name: { get_param: [pcm_server_names, 0] }
138       pcm_image_name: { get_param: pcm_image_name }
139       pcm_flavor_name: { get_param: pcm_flavor_name }
140
141   server_oam_001:
142     type: nested-oam_v0.1.yaml
143     depends_on:
144       - server_pcm_001
145     properties:
146       oam_server_name: { get_param: [oam_server_names, 0] }
147       oam_image_name: { get_param: oam_image_name }
148       oam_flavor_name: { get_param: oam_flavor_name }
149       availabilityzone_name: { get_param: availabilityzone_name }
150       pcm_vol: { get_param: [pcm_volumes, 0] }
151       cps_net_name: { get_param: cps_net_name }
152       cps_net_ip: { get_param: [cps_net_ips, 0] }
153       cps_net_mask: { get_param: cps_net_mask }
154       oam_net_name: { get_param: oam_net_name }
155       oam_net_ip: { get_param: [oam_net_ips, 0] }
156       oam_net_mask: { get_param: oam_net_mask }
157       oam_net_gw: { get_param: oam_net_gw }
158
159   packet_mirror_network:
160     type: OS::Neutron::Net
161     depends_on:
162       - server_pcm_001
163       - server_compute
164     properties:
165       name:
166         get_param: net_name
167
168 outputs:
169     shared_security_group_id1:
170       value: {get_resource: jsa_security_group1}
171
172     shared_security_group_id2:
173           value: {get_resource: jsa_security_group2}