[sdc] - latest code changes
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedWithOneCompute / 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   pcm_server_names:
7     type: comma_delimited_list
8     label: PCRF CM server names
9     description: name of the PCRF CM instance
10   pcm_image_name:
11     type: string
12     label: PCRF CM image name
13     description: PCRF CM image name
14   pcm_flavor_name:
15     type: string
16     label: PCRF CM flavor name
17     description: flavor name of PCRF CM instance
18   availabilityzone_name:
19     type: string
20     label: availabilityzone name
21     description: availabilityzone name
22   cps_net_name:
23     type: string
24     label: CPS network name
25     description: CPS network name
26   cps_net_ips:
27     type: comma_delimited_list
28     label: CPS network ips
29     description: CPS network ips
30   cps_net_mask:
31     type: string
32     label: CPS network mask
33     description: CPS network mask
34   oam_net_name:
35     type: string
36     label: OAM network name
37     description: OAM network name
38   oam_net_ips:
39     type: comma_delimited_list
40     label: OAM network ips
41     description: OAM network ips
42   oam_net_gw:
43     type: string
44     label: CPS network gateway
45     description: CPS network gateway
46   oam_net_mask:
47     type: string
48     label: CPS network mask
49     description: CPS network mask
50   pcm_volumes:
51     type: comma_delimited_list
52     label: CPS Cluman Cinder Volume
53     description: CPS Cluman Cinder Volume
54   security_group_name:
55     type: string
56     label: security group name
57     description: the name of security group
58   compute_image_name:
59     type: string
60   port_net_name:
61     type: string
62
63 resources:
64   server_pcm_001:
65     type: nested-pcm_v0.1.yaml
66     properties:
67       pcm_server_name: { get_param: [pcm_server_names, 0] }
68       pcm_image_name: { get_param: pcm_image_name }
69       pcm_flavor_name: { get_param: pcm_flavor_name }
70       availabilityzone_name: { get_param: availabilityzone_name }
71       security_group_name: { get_param: security_group_name }
72       pcm_vol: { get_param: [pcm_volumes, 0] }
73       cps_net_name: { get_param: cps_net_name }
74       cps_net_ip: { get_param: [cps_net_ips, 0] }
75       cps_net_mask: { get_param: cps_net_mask }
76       oam_net_name: { get_param: oam_net_name }
77       oam_net_ip: { get_param: [oam_net_ips, 0] }
78       oam_net_mask: { get_param: oam_net_mask }
79       oam_net_gw: { get_param: oam_net_gw }
80
81   server_compute:
82     type: OS::Nova::Server
83     properties:
84       config_drive: {get_attr: [compute_port_0]}
85       name: { compute_name }
86       image: { get_param: compute_image_name }
87       flavor: { compute_flavor_name }
88       user_data_format: { get_attr: [server_pcm_001 , oam_net_gw] }
89       metadata: { get_attr: [server_pcm_001]}
90       networks:
91         - port: { get_resource: compute_port_0}
92
93
94   compute_port_0:
95     type: OS::Neutron::Port
96     properties:
97       network: { get_param: port_net_name }
98
99   packet_mirror_network:
100     type: OS::Neutron::Net
101     depends_on:
102       - server_pcm_001
103     properties:
104       name:
105         get_param: port_net_name
106