-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhsweb.yaml
128 lines (128 loc) · 4.62 KB
/
hsweb.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: psjh-epic-hsweb-ssl-lbvserver
description: "Epic Hyperspace Web Server SSL Load-Balancing - Customized for PSJH Epic StyleBooks."
display-name: "Epic Hyperspace Web Server SSL LB vServer StyleBook"
author: Nathan Joseph
namespace: com.psjh.epic.stylebooks
schema-version: "1.0"
version: "1.0"
import-stylebooks:
-
namespace: netscaler.nitro.config
prefix: ns
version: "11.1"
-
namespace: com.psjh.epic.stylebooks
prefix: psjh-epic
version: "1.0"
parameters-default-sources:
- psjh-epic::psjh-epic-lb-helper-params
- psjh-epic::psjh-epic-ssl-helper-params
parameters:
-
name: httpprofile
label: HTTP Profile Name
description: "Optionally, provide the name of an existing HTTP Profile to use for the configuration."
type: string
required: false
-
name: HSWebApp
label: Hyperspace Web Application
description: "Provide the name of the Hyperspace Web Application supported by this configuration for monitoring. EX: /<HSWebApp>/health/healthHandler.ashx?mode=loadbalancer"
type: string
required: true
substitutions:
components:
-
name: HSWeb-lbvserver-comp
type: ns::lbvserver
properties:
name: str("lb_HSWeb_%{$parameters.AppDescription}%_SSL")
servicetype: SSL
ipv46: $parameters.ip
port: 443
lbmethod: ROUNDROBIN
persistencetype: COOKIEINSERT
timeout: 0
tcpprofilename?: $parameters.vserver-tcp-profile
httpprofilename?: $parameters.httpprofile
redirectfromport?: $parameters.SSLRedirectPort
httpsredirecturl?: $parameters.SSLRedirectURL
comment: str("Hyperspace Web SSL LB vServer Configuration - %{$parameters.AppDescription}%")
components:
-
name: HSWeb-sslvserver-sslprofile
type: ns::sslvserver
condition: $parameters.SSLProfile
properties:
sslprofile: $parameters.SSLProfile
vservername: $parent.properties.name
-
name: HSWeb-servicegroup-comp
type: ns::servicegroup
properties:
servicegroupname: str("svcg_HSWeb_%{$parameters.AppDescription}%_SSL")
servicetype: SSL
downstateflush: DISABLED
sp: str("OFF")
useproxyport: str("YES")
tcpprofilename?: $parameters.servicegroup-tcp-profile
httpprofilename?: $parameters.httpprofile
comment?: str("Hyperspace Web SSL LB Service Group Configuration - %{$parameters.AppDescription}%")
components:
-
name: HSWeb-lbvserver-svcg-binding
type: ns::lbvserver_servicegroup_binding
properties:
name: $parent.parent.properties.name
servicegroupname: $parent.properties.servicegroupname
-
name: HSWeb-server-members
type: ns::server
repeat: $parameters.svc-servers
repeat-item: server
repeat-condition: $server.add-server
properties:
name: str("srv_%{$server.svc-name}%_%{$server.ip}%")
ipaddress: $server.ip
-
name: HSWeb-svcg-ip-members
type: ns::servicegroup_servicegroupmember_binding
repeat: $parameters.svc-servers
repeat-item: server
properties:
servername: str("srv_%{$server.svc-name}%_%{$server.ip}%")
port: 443
servicegroupname: $parent.properties.servicegroupname
-
name: vserver-certs-bindings
type: psjh-epic::psjh-vserver-certs-binds
condition: $parameters.certificates
properties:
certificates: $parameters.certificates
vserver-name: $parent.properties.name
-
name: vserver-certs-bindings-existing
type: ns::sslvserver_sslcertkey_binding
condition: $parameters.certificates-existing
properties:
certkeyname: $parameters.certificates-existing
vservername: $parent.properties.name
-
name: HSWeb-monitor-comp
type: ns::lbmonitor
properties:
monitorname: str("mon_HSWeb_%{$parameters.AppDescription}%_HTTP-ECV")
type: HTTP-ECV
send: str("GET /%{$parameters.HSWebApp}%/health/healthHandler.ashx?mode=loadbalancer")
recv: str("{\"Status\":0}")
secure: str("YES")
interval: 30
resptimeout: 10
retries: 3
components:
-
name: HSWeb-monitor-svcg-binding-comp-new
type: ns::servicegroup_lbmonitor_binding
properties:
servicegroupname: $components.HSWeb-lbvserver-comp.components.HSWeb-servicegroup-comp.properties.servicegroupname
monitor_name: $parent.properties.monitorname