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