[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-validation-lib / openecomp-sdc-validation-impl / src / test / resources / openecomp / org / validation / validators / heat_validator / two_resources_does_not_hold_same_id / negative_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_cps_net_mask:
35     type: string
36     label: CPS network mask
37     description: CPS network mask
38   pcrf_security_group_name:
39     type: string
40     label: security group name
41     description: the name of security group
42   pcrf_vnf_id:
43     type: string
44     label: PCRF VNF Id
45     description: PCRF VNF Id
46
47 resources:
48   script_init:
49     type: OS::Heat::SoftwareConfig
50     properties:
51       group: ungrouped
52       config:
53         str_replace:
54           template: { get_file: cloud-nimbus.sh }
55           params:
56             $vm_name: { get_param: pcrf_pps_server_name }
57   network:
58     type: OS::Heat::CloudConfig
59     properties:
60       cloud_config:
61         write_files:
62           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
63             permissions: "0644"
64             content:
65               str_replace:
66                 template: { get_file: nimbus-ethernet }
67                 params:
68                   $dev: eth0
69                   $ip: { get_param: pcrf_cps_net_ip }
70                   $netmask: { get_param: pcrf_cps_net_mask }
71         runcmd:
72           - ifdown eth0 && ifup eth0
73
74   pcrf_server_init:
75     type: OS::Heat::MultipartMime
76     properties:
77       parts:
78       - config: { get_resource: network}
79       - config: { get_resource: script_init}
80
81   pcrf_server_pps:
82     type: OS::Nova::Server
83     properties:
84       config_drive: "True"
85       name: { get_param: pcrf_pps_server_name }
86       image: { get_param: pcrf_pps_image_name }
87       flavor: { get_param: pcrf_pps_flavor_name }
88       availability_zone: { get_param: availabilityzone_name }
89       networks:
90         - port: { get_resource: pcrf_pps_port_0}
91       user_data_format: RAW
92       user_data:
93         get_resource: pcrf_server_init
94       metadata:
95         vnf_id: {get_param: pcrf_vnf_id}
96
97   pcrf_pps_port_0:
98     type: OS::Neutron::Port
99     properties:
100       network: { get_param: pcrf_cps_net_name }
101       fixed_ips:
102         - ip_address: { get_param: pcrf_cps_net_ip }
103       security_groups: [{ get_param: pcrf_security_group_name }]