Skip to content

Commit 40a35ce

Browse files
authored
Merge pull request #284 from jprovaznik/params
Documentation improvements
2 parents d1f8cf1 + 0e28733 commit 40a35ce

2 files changed

Lines changed: 61 additions & 21 deletions

File tree

README.adoc

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,24 @@ nova keypair-add --pub-key ~/.ssh/id_rsa.pub default
132132

133133
== Deployment
134134

135-
You can pass all environment variables to heat on command line. However, two example environment files have been given.
136-
137-
* ``env_origin.yaml`` is an example of the variables to deploy an OpenShift Origin 3 environment.
138-
* ``env_aop.yaml`` is an example of the variables to deploy an Atomic Enterprise or OpenShift Enterprise 3 environment. Note deployment type should be *openshift-enterprise* for OpenShift or *atomic-enterprise* for Atomic Enterprise. Also, a valid RHN subscription is required for deployment.
139-
140-
Assuming your external network is called ``public``, your SSH key is ``default`` and your CentOS 7.2 image is ``centos72`` and your domain name is ``example.com``, this is how you deploy OpenShift Origin:
135+
You can pass all environment variables to heat on command line. However,
136+
two environment files are provided as examples.
137+
138+
* ``env_origin.yaml`` is an example of the variables to deploy an OpenShift
139+
Origin 3 environment.
140+
* ``env_aop.yaml`` is an example of the variables to deploy an Atomic
141+
Enterprise or OpenShift Enterprise 3 environment. Note deployment type
142+
should be *openshift-enterprise* for OpenShift or *atomic-enterprise*
143+
for Atomic Enterprise. Also, a valid RHN subscription is required
144+
for deployment.
145+
146+
Here is a sample of environment file which uses a subset of parameters which
147+
can be set by the user to configure OpenShift deployment. All configurable
148+
parameters including description can be found in the `parameters` section in
149+
the link:openshift.yaml[main template]. Assuming your external
150+
network is called ``public``, your SSH key is `default`, your
151+
CentOS 7.2 image is ``centos72`` and your domain name is ``example.com``,
152+
this is how you deploy OpenShift Origin:
141153

142154
```yaml
143155
cat << EOF > openshift_parameters.yaml
@@ -288,7 +300,8 @@ openshift-on-openstack provides multiple options for setting up loadbalancing:
288300
when creating the stack.
289301

290302
* Dedicated loadbalancer node - a dedicated node is created during stack
291-
creation and HAProxy loadbalancer is configured on it.
303+
creation and HAProxy loadbalancer is configured on it. Both console/API and
304+
OpenSHift router requests are load balanced by this dedicated node.
292305
This type is useful for demo/testing purposes only because HA is not assured for
293306
the single loadbalancer. To select this type include
294307
`-e openshift-on-openstack/env_loadbalancer_dedicated.yaml` when creating the stack.

openshift.yaml

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,30 @@ parameters:
118118

119119
dns_nameserver:
120120
type: comma_delimited_list
121-
description: address of a dns nameserver reachable in your environment
121+
description: Addresses of a dns nameserver reachable in your environment
122122
default: 8.8.8.8
123123

124124
skip_dns:
125125
type: boolean
126+
description: >
127+
If set to true DNS server is not set on bastion node for resolving
128+
OpenShift cluster hostnames (this DNS server is used by OpenShift nodes
129+
only, not by users). Instead dnsmasq is configured on each node by
130+
openshift-ansible (see openshift-ansible openshift_use_dnsmasq option
131+
for details).
126132
default: false
127133

128134
system_update:
129135
type: boolean
136+
description: Run "yum update" on each node on first boot.
130137
default: true
131138

132139
loadbalancer_type:
133140
type: string
134141
default: neutron
142+
description: >
143+
Loadbalancer type used for loadbalancing console/API/router requests.
144+
See 'Select Loadbalancer Type' section in README for more details.
135145
constraints:
136146
- allowed_values:
137147
- neutron
@@ -142,13 +152,17 @@ parameters:
142152
master_count:
143153
type: number
144154
description: >
145-
Number of non-master nodes to create.
155+
Number of master nodes to create.
146156
default: 1
147157

148158
master_server_group_policies:
149159
type: comma_delimited_list
150160
description: >
151-
List of policies applied on master nodes ServerGroup.
161+
List of policies applied on master nodes ServerGroup. By default
162+
'anti-affinity' policy is used to make sure that each master node
163+
is deployed on a different host. If you use a small/all-in-one openstack
164+
environment, you may need to disable this e.g. by passing
165+
'-P master_server_group_policies=affinity'.
152166
default: ['anti-affinity']
153167

154168
infra_count:
@@ -160,7 +174,11 @@ parameters:
160174
infra_server_group_policies:
161175
type: comma_delimited_list
162176
description: >
163-
List of policies applied on master nodes ServerGroup.
177+
List of policies applied on infra nodes ServerGroup. By default
178+
'anti-affinity' policy is used to make sure that each infra node
179+
is deployed on a different host. If you use a small/all-in-one openstack
180+
environment, you may need to disable this e.g. by passing
181+
'-P infra_server_group_policies=affinity'.
164182
default: ['anti-affinity']
165183

166184
node_count:
@@ -259,38 +277,43 @@ parameters:
259277
deploy_registry:
260278
type: boolean
261279
description: >
262-
Specify if a Docker registry should be deployed.
280+
Specify if a Docker registry should be deployed. If set to true, make
281+
sure Openstack parameters (os_*) are set too.
263282
default: false
264283

265284
registry_volume_size:
266285
description: >
267-
Size of the Openshift registry persistent volume
286+
Size of the Openshift registry persistent volume. Used only if
287+
deploy_registry=true.
268288
type: number
269289
default: 10
270290

271291
registry_volume_fs:
272292
description: >
273-
Filesystem to use for Openshift registry persistent volume
293+
Filesystem to use for Openshift registry persistent volume. Used only if
294+
deploy_registry=true.
274295
type: string
275296
default: ext4
276297

277298
registry_volume_id:
278299
description: >
279-
An existing cinder volume to use for Openshift registry persistent volume
300+
An existing cinder volume to use for Openshift registry persistent volume.
301+
See 'Using Persistent Cinder Volume for Docker Registry' section in
302+
README for more details.
280303
type: string
281304
default: ''
282305

283306
deploy_router:
284307
type: boolean
285308
description: >
286-
Specify if a router should be deployed.
309+
Specify if an OpenShift router should be deployed.
287310
default: false
288311

289312
# OpenShift configuration: ansible controls
290313
skip_ansible:
291314
type: boolean
292315
description: >
293-
Do not install Openshift using Ansible
316+
Do not install Openshift using Ansible.
294317
default: false
295318

296319
openshift_ansible_git_url:
@@ -363,7 +386,7 @@ parameters:
363386
extra_rhn_pools:
364387
type: comma_delimited_list
365388
description: >
366-
The extra pools to attach.
389+
The extra pools to attach.
367390
default: ''
368391

369392
os_auth_url:
@@ -399,17 +422,21 @@ parameters:
399422

400423
extra_repository_urls:
401424
type: comma_delimited_list
402-
description: List of repository URLs which will be installed on each node.
425+
description: A list of repository URLs which will be installed on each node.
403426
default: ''
404427

405428
extra_docker_repository_urls:
406429
type: comma_delimited_list
407-
description: List of docker repository URLs which will be installed on each node, if a repo is insecure use '#insecure' suffix.
430+
description: >
431+
A list of docker repository URLs which will be installed on each node,
432+
if a repo is insecure use '#insecure' suffix.
408433
default: ''
409434

410435
prepare_registry:
411436
type: boolean
412-
description: If the registry volume should be formatted during deployment.
437+
description: >
438+
If the registry volume should be formatted during deployment. Used
439+
only if deploy_registry=true.
413440
default: false
414441

415442
volume_quota:

0 commit comments

Comments
 (0)