Skip to content

Commit

Permalink
feat: allow customizing the number of master and worker nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdotcosta committed Oct 5, 2023
1 parent 8fec92a commit 67f551f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/ocp_cluster/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ocp_version: 4.13.9
ocp_cluster_name: ocp
ocp_user: snowdrop
ocp_root_directory: /opt/ocp
ocp_master_nodes: 3
ocp_worker_nodes: 3

# tag::rhos_default_flavors[]
# OpenStack flavors
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/ocp_cluster/templates/install-config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ compute:
platform:
openstack:
type: {{ openstack_flavor_compute }}
replicas: 3
replicas: {{ ocp_worker_nodes }}
controlPlane:
architecture: amd64
hyperthreading: Enabled
name: master
platform: {}
replicas: 3
replicas: {{ ocp_master_nodes }}
metadata:
creationTimestamp: null
name: {{ ocp_cluster_name }}
Expand Down

0 comments on commit 67f551f

Please sign in to comment.