push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / multi / inputs / 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_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_ip:
39     type: string
40     label: OAM network ip
41     description: OAM network ip
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_vol:
51     type: string
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
59 resources:
60   network:
61     type: net
62   script_init:
63     type: OS:INIT
64   server_init:
65     type: OS::Heat::MultipartMime
66     properties:
67       parts:
68       - config: { get_resource: network}
69       - config: { get_resource: script_init}
70
71   server_pcm:
72     type: OS::Nova::Server
73     properties:
74       config_drive: "True"
75       name: { get_param: pcm_server_name }
76       image: { get_param: pcm_image_name }
77       flavor: { get_param: pcm_flavor_name }
78       availability_zone: { get_param: availabilityzone_name }
79       networks:
80         - port: { get_resource: pcm_port_0}
81         - port: { get_resource: pcm_port_1}
82       block_device_mapping:
83         - device_name: vdb
84           volume_id: { get_param: pcm_vol}
85       user_data_format: RAW
86       user_data:
87         get_resource: server_init
88
89   pcm_port_0:
90     type: OS::Neutron::Port
91     properties:
92       network: { get_param: cps_net_name }
93       fixed_ips:
94         - ip_address: { get_param: cps_net_ip }
95       security_groups: [{ get_param: security_group_name }]
96
97   pcm_port_1:
98     type: OS::Neutron::Port
99     properties:
100       network: { get_param: oam_net_name }
101       fixed_ips:
102         - ip_address: { get_param: oam_net_ip }
103       security_groups: [{ get_param: security_group_name }]
104
105   #pcm_vol_attachment:
106   #  type: OS:: Cinder::VolumeAttachment
107   #  properties:
108   #    volume_id: { get_param: pcm_vol }
109   #    mountpoint: /dev/vdb
110   #    instance_uuid: { get_resource: server_pcm }
111 outputs:
112   server_pcm_id:
113     description: the pcm nova service id
114     value: { get_resource: server_pcm }