blob: 76f15202dce024ba91e14e0b9c363890abd99907 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
heat_template_version: 2013-05-23
description: heat template that creates PCRF Policy Server stack
parameters:
pcrf_pps_server_name:
type: string
label: PCRF PS server name
description: PCRF PS server name
pcrf_pps_image_name:
type: string
label: PCRF PS image name
description: PCRF PS image name
pcrf_pps_flavor_name:
type: string
label: PCRF PS flavor name
description: flavor name of PCRF PS instance
availabilityzone_name:
type: string
label: availabilityzone name
description: availabilityzone name
pcrf_cps_net_name:
type: string
label: CPS network name
description: CPS network name
pcrf_cps_net_ip:
type: string
label: CPS network ip
description: CPS network ip
pcrf_cps_net_mask:
type: string
label: CPS network mask
description: CPS network mask
pcrf_security_group_name:
type: string
label: security group name
description: the name of security group
static_value_legal_1:
type: number
label: PCRF VNF Id
description: PCRF VNF Id
static_value_illegal_1:
type: boolean
label: PCRF VNF Id
description: PCRF VNF Id
static_value_legal_2:
type: string
label: PCRF VNF Id
description: PCRF VNF Id
parameter_not_match_nested_type:
type: boolean
label: PCRF VNF Id
description: PCRF VNF Id
resources:
script_init:
type: OS::Heat::SoftwareConfig
properties:
group: ungrouped
config:
str_replace:
params:
$vm_name: { get_param: pcrf_pps_server_name }
network:
type: OS::Heat::CloudConfig
properties:
cloud_config:
write_files:
- path: /etc/sysconfig/network-scripts/ifcfg-eth0
permissions: "0644"
content:
str_replace:
params:
$dev: eth0
$ip: { get_param: pcrf_cps_net_ip }
$netmask: { get_param: pcrf_cps_net_mask }
runcmd:
- ifdown eth0 && ifup eth0
pcrf_server_init:
type: OS::Heat::MultipartMime
properties:
parts:
- config: { get_resource: network}
- config: { get_resource: script_init}
|