Skip to content

Commit 77758ed

Browse files
Switch the master to always run with bootstrapping on
Change the defaults for node bootstrapping to true, all nodes will bootstrap unless opted out. Remove containerized node artifacts Remove the openshift_master role - it is dead.
1 parent 8a0fde1 commit 77758ed

File tree

142 files changed

+466
-2500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+466
-2500
lines changed

.papr.inventory

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ osm_host_subnet_length=9
1717

1818
[all:vars]
1919
# bootstrap configs
20-
openshift_node_groups=[{"name":"node-config-master","labels":["node-role.kubernetes.io/master=true","node-role.kubernetes.io/infra=true"]},{"name":"node-config-node","labels":["node-role.kubernetes.io/compute=true"]}]
21-
openshift_master_bootstrap_enabled=true
2220
openshift_master_bootstrap_auto_approve=true
2321
openshift_master_bootstrap_auto_approver_node_selector={"node-role.kubernetes.io/master":"true"}
2422
osm_controller_args={"experimental-cluster-signing-duration": ["20m"]}
@@ -33,6 +31,6 @@ ocp-master
3331
ocp-master
3432

3533
[nodes]
36-
ocp-master openshift_schedulable=true
34+
ocp-master openshift_schedulable=true openshift_node_labels="{'node-role.kubernetes.io/infra':'true'}"
3735
ocp-node1
3836
ocp-node2

.papr.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ upload_journals() {
3232

3333
trap upload_journals ERR
3434

35-
# make all nodes ready for bootstrapping
36-
ansible-playbook -v -i .papr.inventory playbooks/openshift-node/private/image_prep.yml
37-
3835
# run the actual installer
3936
ansible-playbook -v -i .papr.inventory playbooks/deploy_cluster.yml
4037

docs/best_practices_guide.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ For consistency, role names SHOULD follow the above naming pattern. It is import
406406
Many times the `technology` portion of the pattern will line up with a package name. It is advised that whenever possible, the package name should be used.
407407

408408
.Examples:
409-
* The role to configure a master is called `openshift_master`
409+
* The role to configure a master is called `openshift_control_plane`
410410
* The role to configure OpenShift specific yum repositories is called `openshift_repos`
411411

412412
=== Filters

docs/proposals/role_decomposition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ in meta/main.yml without:
330330
## Avoiding overly verbose roles
331331
When we are splitting our roles up into smaller components we want to ensure we
332332
avoid creating roles that are, for a lack of a better term, overly verbose. What
333-
do we mean by that? If we have `openshift_master` as an example, and we were to
333+
do we mean by that? If we have `openshift_control_plane` as an example, and we were to
334334
split it up, we would have a component for `etcd`, `docker`, and possibly for
335335
its rpms/configs. We would want to avoid creating a role that would just create
336336
certificates as those would make sense to be contained with the rpms and configs.

inventory/hosts.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ debug_level=2
411411
#
412412
# An OpenShift router will be created during install if there are
413413
# nodes present with labels matching the default router selector,
414-
# "region=infra". Set openshift_node_labels per node as needed in
414+
# "node-role.kubernetes.io/infra=true". Set openshift_node_labels per node as needed in
415415
# order to label nodes.
416416
#
417417
# Example:
@@ -420,8 +420,8 @@ debug_level=2
420420
#
421421
# Router selector (optional)
422422
# Router will only be created if nodes matching this label are present.
423-
# Default value: 'region=infra'
424-
#openshift_hosted_router_selector='region=infra'
423+
# Default value: 'node-role.kubernetes.io/infra=true'
424+
#openshift_hosted_router_selector='node-role.kubernetes.io/infra=true'
425425
#
426426
# Router replicas (optional)
427427
# Unless specified, openshift-ansible will calculate the replica count
@@ -462,7 +462,7 @@ debug_level=2
462462
#
463463
# An OpenShift registry will be created during install if there are
464464
# nodes present with labels matching the default registry selector,
465-
# "region=infra". Set openshift_node_labels per node as needed in
465+
# "node-role.kubernetes.io/infra=true". Set openshift_node_labels per node as needed in
466466
# order to label nodes.
467467
#
468468
# Example:
@@ -471,8 +471,8 @@ debug_level=2
471471
#
472472
# Registry selector (optional)
473473
# Registry will only be created if nodes matching this label are present.
474-
# Default value: 'region=infra'
475-
#openshift_hosted_registry_selector='region=infra'
474+
# Default value: 'node-role.kubernetes.io/infra=true'
475+
#openshift_hosted_registry_selector='node-role.kubernetes.io/infra=true'
476476
#
477477
# Registry replicas (optional)
478478
# Unless specified, openshift-ansible will calculate the replica count

inventory/hosts.glusterfs.native.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ master
3131
# masters should be schedulable to run web console pods
3232
master openshift_schedulable=True
3333
# A hosted registry, by default, will only be deployed on nodes labeled
34-
# "region=infra".
34+
# "node-role.kubernetes.io/infra=true".
3535
node0 openshift_schedulable=True
3636
node1 openshift_schedulable=True
3737
node2 openshift_schedulable=True

inventory/hosts.glusterfs.registry-only.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ master
3737
# masters should be schedulable to run web console pods
3838
master openshift_schedulable=True
3939
# A hosted registry, by default, will only be deployed on nodes labeled
40-
# "region=infra".
40+
# "node-role.kubernetes.io/infra=true".
4141
node0 openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
4242
node1 openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
4343
node2 openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True

inventory/hosts.glusterfs.storage-and-registry.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ node0 openshift_schedulable=True
4343
node1 openshift_schedulable=True
4444
node2 openshift_schedulable=True
4545
# A hosted registry, by default, will only be deployed on nodes labeled
46-
# "region=infra".
46+
# "node-role.kubernetes.io/infra=true".
4747
node3 openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
4848
node4 openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True
4949
node5 openshift_node_labels="{'region': 'infra'}" openshift_schedulable=True

playbooks/aws/provisioning-inventory.example.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ etcd
1111
openshift_deployment_type=origin
1212
openshift_cloudprovider_kind=aws
1313

14-
openshift_master_bootstrap_enabled=True
1514
openshift_master_api_port=443
1615

1716
openshift_hosted_router_wait=False

playbooks/byo/openshift-cluster/upgrades/v3_6/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_6/upgrade.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_6/upgrade_control_plane.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_6/upgrade_nodes.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_7/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade_control_plane.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade_nodes.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

playbooks/common/openshift-cluster/upgrades/v3_6/roles

Lines changed: 0 additions & 1 deletion
This file was deleted.

playbooks/common/openshift-cluster/upgrades/v3_6/upgrade.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

playbooks/common/openshift-cluster/upgrades/v3_6/upgrade_control_plane.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

playbooks/common/openshift-cluster/upgrades/v3_6/upgrade_nodes.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

playbooks/common/openshift-cluster/upgrades/v3_6/validator.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

playbooks/common/openshift-cluster/upgrades/v3_7/roles

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)