[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 / nested-pcm_v0.1.yaml
1 heat_template_version: 2013-05-23
2
3 description: heat template that creates PCRF Cluman stack
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   pcm_server_name:
13     type: string
14     label: PCRF CM server name
15     description: PCRF CM server name
16   pcm_image_name:
17     type: string
18     label: 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   availabilityzone_name:
25     type: string
26     label: availabilityzone name
27     description: availabilityzone name
28   cps_net_name:
29     type: string
30     label: CPS network name
31     description: CPS network name
32   cps_net_ip:
33     type: string
34     label: CPS network ip
35     description: CPS network ip
36   cps_net_mask:
37     type: string
38     label: CPS network mask
39     description: CPS network mask
40   oam_net_name:
41     type: string
42     label: OAM network name
43     description: OAM network name
44   oam_net_ip:
45     type: string
46     label: OAM network ip
47     description: OAM network ip
48   oam_net_gw:
49     type: string
50     label: CPS network gateway
51     description: CPS network gateway
52   oam_net_mask:
53     type: string
54     label: CPS network mask
55     description: CPS network mask
56   pcm_vol:
57     type: string
58     label: CPS Cluman Cinder Volume
59     description: CPS Cluman Cinder Volume
60   security_group_name:
61     type: string
62     label: security group name
63     description: the name of security group
64
65 resources:
66   server_pcm:
67     type: OS::Nova::Server
68     properties:
69       config_drive: "True"
70       name: { get_param: pcm_server_name }
71       image: { get_param: pcm_image_name }
72       flavor: { get_param: pcm_flavor_name }
73       availability_zone: { get_param: availabilityzone_name }
74       networks:
75         - port: { get_resource: pcm_port_0}
76         - port: { get_resource: pcm_port_1}
77       block_device_mapping:
78         - device_name: vdb
79           volume_id: { get_param: pcm_vol}
80       user_data_format: RAW
81
82   pcm_port_0:
83     type: OS::Neutron::Port
84     properties:
85       network: { get_param: cps_net_name }
86       fixed_ips:
87         - ip_address: { get_param: cps_net_ip }
88       security_groups: [{get_param: p1},{get_param: p2}]
89
90   pcm_port_1:
91     type: OS::Neutron::Port
92     properties:
93       network: { get_param: oam_net_name }
94       fixed_ips:
95         - ip_address: { get_param: oam_net_ip }
96       security_groups: [{get_param: p1}]
97
98   #pcm_vol_attachment:
99   #  type: OS::Cinder::VolumeAttachment
100   #  properties:
101   #    volume_id: { get_param: pcm_vol }
102   #    mountpoint: /dev/vdb
103   #    instance_uuid: { get_resource: server_pcm }
104 outputs:
105   server_pcm_id:
106     description: the pcm nova service id
107     value: { get_resource: server_pcm }