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