Skip to content

Commit ae48a58

Browse files
fix: properly process pull secret string
1 parent 8657111 commit ae48a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solutions/standard-openshift/ansible/templates-ansible/deploy-openshift-cluster/playbook-configure-ocp-cluster.yml.tftpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
powervs_zone: "${POWERVS_ZONE}"
2727
vpc_name: "${VPC_NAME}"
2828
vpc_region: "${VPC_REGION}"
29-
pull_secret: '${PULL_SECRET_FILE}'
29+
pull_secret: '${PULL_SECRET}'
3030
ssh_key: "${SSH_KEY}"
3131
base_path: "/tmp"
3232
base_url: "https://mirror.openshift.com/pub/openshift-v4"

solutions/standard-openshift/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module "ocp_cluster_install_configuration" {
105105
POWERVS_ZONE : var.powervs_zone,
106106
VPC_NAME : module.standard.vpc_names[0],
107107
VPC_REGION : local.vpc_region,
108-
PULL_SECRET_FILE : jsonencode(var.openshift_pull_secret),
108+
PULL_SECRET : trimspace(var.openshift_pull_secret),
109109
SSH_KEY : var.ssh_public_key,
110110
}
111111

0 commit comments

Comments
 (0)