push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / recursive / inputs / nested-pcm_v0.1_2.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   pcm_vol:
35     type: string
36     label: CPS Cluman Cinder Volume
37     description: CPS Cluman Cinder Volume
38   security_group_name:
39     type: string
40     label: security group name
41     description: the name of security group
42   oam_net_name:
43     type: string
44     label: OAM network name
45     description: OAM network name
46   oam_net_ip:
47     type: string
48 resources:
49   server_init:
50     type: OS::Heat::MultipartMime
51     properties:
52       parts:
53       - config: { get_resource: network}
54       - config: { get_resource: script_init}
55
56   script_init:
57     type: OS::Heat::MultipartMime
58     properties:
59       parts:
60       - config: { get_resource: network}
61
62   network:
63     type: OS::Contrail::VirtualNetwork
64     properties:
65       name: { get_param: cps_net_name}
66
67   server_pcm:
68     type: OS::Nova::Server
69     properties:
70       config_drive: "True"
71       name: { get_param: pcm_server_name }
72       image: { get_param: pcm_image_name }
73       flavor: { get_param: pcm_flavor_name }
74       availability_zone: { get_param: availabilityzone_name }
75       networks:
76         - port: { get_resource: pcm_port_0}
77         - port: { get_resource: pcm_port_1}
78       block_device_mapping:
79         - device_name: vdb
80           volume_id: { get_param: pcm_vol}
81       user_data_format: RAW
82       user_data:
83         get_resource: server_init
84
85   pcm_port_0:
86     type: OS::Neutron::Port
87     properties:
88       network: { get_param: cps_net_name }
89       fixed_ips:
90         - ip_address: { get_param: cps_net_ip }
91       security_groups: [{ get_param: security_group_name }]
92
93   pcm_port_1:
94     type: OS::Neutron::Port
95     properties:
96       network: { get_param: oam_net_name }
97       fixed_ips:
98         - ip_address: { get_param: oam_net_ip }
99       security_groups: [{ get_param: security_group_name }]
100
101   #pcm_vol_attachment:
102   #  type: OS::Cinder::VolumeAttachment
103   #  properties:
104   #    volume_id: { get_param: pcm_vol }
105   #    mountpoint: /dev/vdb
106   #    instance_uuid: { get_resource: server_pcm }
107 outputs:
108   server_pcm_id:
109     description: the pcm nova service id
110     value: { get_resource: server_pcm }