-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlb-only-stylebook.yaml
69 lines (65 loc) · 2.58 KB
/
lb-only-stylebook.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
#########
# Header
#########
name: basic-lb-config
description: "A simple LB configuration."
display-name: "LB StyleBook (HTTP)"
author: Mike Smith
namespace: com.example.stylebooks
schema-version: "1.0"
version: "0.1"
##########
# Imports
##########
import-stylebooks:
-
namespace: netscaler.nitro.config
prefix: ns
version: "10.5"
###################
# Input Parameters
###################
parameters:
-
name: name
type: string
label: Application Name
description: Name of the LB vServer.
required: true
-
name: ip
type: ipaddress
label: Application Virtual IP (VIP)
description: Application VIP that the clients accesses.
required: true
-
name: lb-alg
type: string
label: LoadBalancing Algorithm
description: Choose the method for LB client requests.
allowed-values:
- ROUNDROBIN
- LEASTCONNECTION
default: ROUNDROBIN
#############
# Components
#############
components:
-
name: lbvserver-comp
type: ns::lbvserver
description: From Nitro StyleBook, makes lbvserver object.
properties:
name: $parameters.name
servicetype: SSL
ipv46: $parameters.ip
port: 80
lbmethod: $parameters.lb-alg
##########
# Outputs
##########
outputs:
-
name: lbvserver-comp
value: $components.lbvserver-comp
description: Builds the Nitro lbvserver object