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.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_pcm_005:
69         type: nested-pcm_v0.1_2.yaml
70         properties:
71           availabilityzone_name: { get_param: availabilityzone_name }
72           security_group_name: { get_param: security_group_name }
73           pcm_vol: { get_param: [pcm_volumes, 0] }
74           cps_net_name: { get_param: cps_net_name }
75           cps_net_ip: { get_param: [cps_net_ips, 0] }
76           cps_net_mask: { get_param: cps_net_mask }
77   server_init:
78     type: OS::Heat::MultipartMime
79     properties:
80       parts:
81       - config: { get_resource: network}
82       - config: { get_resource: script_init}
83
84   script_init:
85     type: OS::Heat::MultipartMime
86     properties:
87       parts:
88       - config: { get_resource: network}
89
90   network:
91     type: OS::Contrail::VirtualNetwork
92     properties:
93       name: { get_param: cps_net_name}
94
95   server_pcm:
96     type: OS::Nova::Server
97     properties:
98       config_drive: "True"
99       name: { get_param: pcm_server_name }
100       image: { get_param: pcm_image_name }
101       flavor: { get_param: pcm_flavor_name }
102       availability_zone: { get_param: availabilityzone_name }
103       networks:
104         - port: { get_resource: pcm_port_0}
105         - port: { get_resource: pcm_port_1}
106       block_device_mapping:
107         - device_name: vdb
108           volume_id: { get_param: pcm_vol}
109       user_data_format: RAW
110       user_data:
111         get_resource: server_init
112
113   pcm_port_0:
114     type: OS::Neutron::Port
115     properties:
116       network: { get_param: cps_net_name }
117       fixed_ips:
118         - ip_address: { get_param: cps_net_ip }
119       security_groups: [{ get_param: security_group_name }]
120
121   pcm_port_1:
122     type: OS::Neutron::Port
123     properties:
124       network: { get_param: oam_net_name }
125       fixed_ips:
126         - ip_address: { get_param: oam_net_ip }
127       security_groups: [{ get_param: security_group_name }]
128
129   #pcm_vol_attachment:
130   #  type: OS::Cinder::VolumeAttachment
131   #  properties:
132   #    volume_id: { get_param: pcm_vol }
133   #    mountpoint: /dev/vdb
134   #    instance_uuid: { get_resource: server_pcm }
135 outputs:
136   server_pcm_id:
137     description: the pcm nova service id
138     value: { get_resource: server_pcm }