Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Support minimalistic 3-node OCP config (#66)
Browse files Browse the repository at this point in the history
Fixes #65

Signed-off-by: Yussuf Shaikh <[email protected]>
  • Loading branch information
yussufsh authored Nov 4, 2020
1 parent 89fd1d2 commit 732de65
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Update the following variables specific to your cluster requirement. All the var
* `memory` : Memory in MBs required for master nodes.
* `vcpu` : Number of VCPUs to use for master nodes.
* `count` : Number of master nodes.
* `worker` : Map of below parameters for worker hosts. (Atleaset 2 Workers are required for running router pods in HA mode)
* `worker` : Map of below parameters for worker hosts.
* `memory` : Memory in MBs required for worker nodes.
* `vcpu` : Number of VCPUs to use for worker nodes.
* `count` : Number of worker nodes.
Expand Down
5 changes: 5 additions & 0 deletions modules/3_helpernode/templates/helpernode_vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ masters:
ipaddr: "${m.ip}"
macaddr: "${m.mac}"
%{ endfor ~}
%{ if length(worker_info) > 0 }
workers:
%{ for w in worker_info ~}
- name: "${w.name}"
ipaddr: "${w.ip}"
macaddr: "${w.mac}"
%{ endfor ~}
%{ endif }
chronyconfig:
enabled: ${chrony_config}
content:
Expand Down Expand Up @@ -65,3 +67,6 @@ setup_registry:
release_name: "ocp-release"
release_tag: "${local_registry.ocp_release_tag}"
%{ endif }

# This is required for latest helpernode. TODO: Remove when https://github.com/RedHatOfficial/ocp4-helpernode/pull/140 is merged
helm_source: "https://get.helm.sh/helm-v3.4.0-linux-ppc64le.tar.gz"
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ variable "installer_log_level" {
variable "helpernode_tag" {
description = "Set the branch/tag name or commit# for using ocp4-helpernode repo"
# Checkout level for https://github.com/RedHatOfficial/ocp4-helpernode which is used for setting up services required on bastion node
default = "5eab3db53976bb16be582f2edc2de02f7510050d"
default = "dd8a0767c677fc862e45b6d70e5d04656ced5d28"
}

variable "install_playbook_tag" {
description = "Set the branch/tag name or commit# for using ocp4-playbooks repo"
# Checkout level for https://github.com/ocp-power-automation/ocp4-playbooks which is used for running ocp4 installations steps
default = "b988d620bd70284c7674e7a94e107c456c940dd0"
default = "c6e6038dba0856e621697c876bd3a65927f46166"
}

variable "ansible_extra_options" {
Expand Down

0 comments on commit 732de65

Please sign in to comment.