-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathloadbalancer_neutron.yaml
235 lines (195 loc) · 5.63 KB
/
loadbalancer_neutron.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
heat_template_version: 2016-10-14
description: >
A template which provides a creates a loadbalancer using neutron's LBaaS.
parameters:
# What version of OpenShift Container Platform to install
# This value is used to select the RPM repo for the OCP release to install
ocp_version:
type: string
description: >
The version of OpenShift Container Platform to deploy
key_name:
description: >
A pre-submitted SSH key to access the VM hosts
type: string
constraints:
- custom_constraint: nova.keypair
image:
type: string
default: ''
flavor:
description: >
Define the hardware characteristics for the VMs: CPU, Memory, base disk
type: string
constraints:
- custom_constraint: nova.flavor
hostname:
description: >
The load balancer hostname portion of the FQDN
type: string
constraints:
- allowed_pattern: '[a-z0-9\-\.]*'
description: Hostname must contain only characters [a-z0-9\-\.].
stack_name:
description: Top level stack name.
type: string
domain_name:
description: >
All VMs will be placed in this domain
type: string
app_subdomain:
type: string
rhn_username:
description: >
A valid user with entitlements to RHEL and OpenShift software repos
type: string
rhn_password:
description: >
The password for the RHN user
type: string
hidden: true
# Red Hat satellite subscription parameters
sat6_hostname:
type: string
description: >
The hostname of the Satellite 6 server which will provide software updates
default: ''
sat6_organization:
type: string
description: >
An organization string provided by Sat6 to group subscriptions
default: ''
sat6_activationkey:
type: string
description: >
An activation key string provided by Sat6 to enable subscriptions
rhn_pool:
description: >
A subscription pool containing the RHEL and OpenShift software repos
OPTIONAL
type: string
hidden: true
extra_rhn_pools:
type: comma_delimited_list
description: List of rhn pools which will be installed on each node.
default: ''
ssh_user:
description: >
The user for SSH access to the VM hosts
type: string
ansible_public_key:
description: >
The SSH public key that Ansible will use to access master and node hosts
This will be placed on each VM host in /root/.ssh/authorized_keys
type: string
fixed_subnet:
description: >
The name or ID of the internal IPv4 space
type: string
constraints:
- custom_constraint: neutron.subnet
members:
type: comma_delimited_list
master_hostname:
type: string
floatingip_id:
type: string
floatingip:
type: string
fixed_network:
description: >
The name or ID of the internal network
type: string
constraints:
- custom_constraint: neutron.network
fixed_subnet:
description: >
The name or ID of the internal IPv4 space
type: string
constraints:
- custom_constraint: neutron.subnet
extra_repository_urls:
type: comma_delimited_list
description: List of repository URLs which will be installed on each node.
default: ''
extra_docker_repository_urls:
type: comma_delimited_list
description: List of docker repository URLs which will be installed on each node, if a repo is insecure use '#insecure' suffix.
default: ''
stack_name:
type: string
default: ''
bastion_node:
type: string
description: >
The name or ID of the bastion instance.
default: ''
dns_servers:
type: comma_delimited_list
description: address of dns nameservers reachable in your environment
dns_update_key:
type: string
hidden: true
ca_cert:
type: string
description: Certificate Authority Certificate to be added to trust chain
resources:
lb:
type: OS::Neutron::LoadBalancer
properties:
protocol_port: 8443
pool_id: {get_resource: lb_pool}
members: {get_param: members}
lb_pool:
type: OS::Neutron::Pool
properties:
name: lb_pool
description: Load balancer for OpenShift hosts.
protocol: HTTPS
subnet_id: {get_param: fixed_subnet}
lb_method: ROUND_ROBIN
monitors: [{get_resource: lb_monitor}]
vip:
protocol_port: 8443
session_persistence:
type: SOURCE_IP
lb_monitor:
type: OS::Neutron::HealthMonitor
properties:
type: TCP
delay: 15
max_retries: 5
timeout: 10
floating_ip_assoc:
type: OS::Neutron::FloatingIPAssociation
properties:
port_id: {get_attr: [lb_pool, vip, port_id]}
floatingip_id: {get_param: floatingip_id}
outputs:
console_url:
description: URL of the OpenShift web console
value:
str_replace:
template: "https://%stack_name%-%hostname%.%domainname%:8443/console/"
params:
'%stack_name%': {get_param: stack_name}
'%hostname%': {get_param: hostname}
'%domainname%': {get_param: domain_name}
api_url:
description: URL entrypoint to the OpenShift API
value:
str_replace:
template: "https://%stack_name%-%hostname%.%domainname%:8443/"
params:
'%stack_name%': {get_param: stack_name}
'%hostname%': {get_param: hostname}
'%domainname%': {get_param: domain_name}
hostname:
description: Loadbalancer hostname
value:
str_replace:
template: "%stack_name%-%hostname%.%domainname%"
params:
'%stack_name%': {get_param: stack_name}
'%hostname%': {get_param: hostname}
'%domainname%': {get_param: domain_name}