Initial OpenECOMP MSO commit
[so.git] / packages / arquillian-unit-tests / src / test / resources / resource-examples / asdc / simpleNotif-V3 / artifacts / nested-psm_v1.0.yaml
1 heat_template_version: 2013-05-23\r
2 \r
3 description: heat template that creates PCRF Session Manager stack\r
4 \r
5 parameters:\r
6   pcrf_psm_server_name:\r
7     type: string\r
8     label: PCRF SM server name\r
9     description: PCRF SM server name\r
10   pcrf_psm_image_name:\r
11     type: string\r
12     label: image name\r
13     description: PCRF SM image name\r
14   pcrf_psm_flavor_name:\r
15     type: string\r
16     label: PCRF SM flavor name\r
17     description: flavor name of PCRF SM 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   network:\r
45     type: OS::Heat::CloudConfig\r
46     properties:\r
47       cloud_config:\r
48         write_files:\r
49           - path: /etc/sysconfig/network-scripts/ifcfg-eth0\r
50             permissions: "0644"\r
51             content:\r
52               str_replace:\r
53                 template: { get_file: nimbus-ethernet }\r
54                 params:\r
55                   $dev: eth0\r
56                   $ip: { get_param: pcrf_cps_net_ip }\r
57                   $netmask: { get_param: pcrf_cps_net_mask }\r
58         runcmd:\r
59           - ifdown eth0 && ifup eth0\r
60   script_init:\r
61     type: OS::Heat::SoftwareConfig\r
62     properties:\r
63       group: ungrouped\r
64       config:\r
65         str_replace:\r
66           template: { get_file: cloud-nimbus.sh }\r
67           params:\r
68             $vm_name: { get_param: pcrf_psm_server_name }\r
69   pcrf_server_init:\r
70     type: OS::Heat::MultipartMime\r
71     properties:\r
72       parts:\r
73       - config: { get_resource: network}\r
74       - config: { get_resource: script_init}\r
75 \r
76   pcrf_server_psm:\r
77     type: OS::Nova::Server\r
78     properties:\r
79       config_drive: "True"\r
80       name: { get_param: pcrf_psm_server_name }\r
81       image: { get_param: pcrf_psm_image_name }\r
82       flavor: { get_param: pcrf_psm_flavor_name }\r
83       availability_zone: { get_param: availabilityzone_name }\r
84       networks:\r
85         - port: { get_resource: psm01_port_0}\r
86       user_data_format: RAW\r
87       user_data:\r
88         get_resource: pcrf_server_init\r
89       metadata:\r
90         vnf_id: {get_param: pcrf_vnf_id}\r
91       #scheduler_hints: {group: { get_resource: servergroup_nimbus }}\r
92   \r
93   psm01_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 }]