[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-validation-lib / openecomp-sdc-validation-impl / src / test / resources / org / openecomp / validation / validators / heat_validator / resource_references_exist_in_heat / positive_test / input / nested-pps_v1.0.yaml
1 heat_template_version: 2013-05-23
2
3 description: heat template that creates PCRF Policy Server stack
4
5 parameters:
6   pcrf_pps_server_name:
7     type: string
8     label: PCRF PS server name
9     description: PCRF PS server name
10   pcrf_pps_image_name:
11     type: string
12     label: PCRF PS image name
13     description: PCRF PS image name
14   pcrf_pps_flavor_name:
15     type: string
16     label: PCRF PS flavor name
17     description: flavor name of PCRF PS instance
18   availabilityzone_name:
19     type: string
20     label: availabilityzone name
21     description: availabilityzone name
22   pcrf_cps_net_name:
23     type: string
24     label: CPS network name
25     description: CPS network name
26   pcrf_cps_net_ip:
27     type: string
28     label: CPS network ip
29     description: CPS network ip
30   pcrf_cps_net_mask:
31     type: string
32     label: CPS network mask
33     description: CPS network mask
34   pcrf_security_group_name:
35     type: string
36     label: security group name
37     description: the name of security group
38   pcrf_vnf_id:
39     type: string
40     label: PCRF VNF Id
41     description: PCRF VNF Id
42
43 resources:
44   script_init:
45     type: OS::Heat::SoftwareConfig
46     properties:
47       group: ungrouped
48       config:
49         str_replace:
50           params:
51             $vm_name: { get_param: pcrf_pps_server_name }
52   network:
53     type: OS::Heat::CloudConfig
54     properties:
55       cloud_config:
56         write_files:
57           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
58             permissions: "0644"
59             content:
60               str_replace:
61                 params:
62                   $dev: eth0
63                   $ip: { get_param: pcrf_cps_net_ip }
64                   $netmask: { get_param: pcrf_cps_net_mask }
65         runcmd:
66           - ifdown eth0 && ifup eth0
67
68   pcrf_server_init:
69     type: OS::Heat::MultipartMime
70     properties:
71       parts:
72       - config: { get_resource: network}
73       - config: { get_resource: script_init}
74
75   pcrf_server_pps:
76     type: OS::Nova::Server
77     properties:
78       config_drive: "True"
79       name: { get_param: pcrf_pps_server_name }
80       image: { get_param: pcrf_pps_image_name }
81       flavor: { get_param: pcrf_pps_flavor_name }
82       availability_zone: { get_param: availabilityzone_name }
83       networks:
84         - port: { get_resource: pcrf_pps_port_0}
85       user_data_format: RAW
86       user_data:
87         get_resource: pcrf_server_init
88       metadata:
89         vnf_id: {get_param: pcrf_vnf_id}
90
91   pcrf_pps_port_0:
92     type: OS::Neutron::Port
93     properties:
94       network: { get_param: pcrf_cps_net_name }
95       fixed_ips:
96         - ip_address: { get_param: pcrf_cps_net_ip }
97       security_groups: [{ get_param: pcrf_security_group_name }]