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