Skip to content

Commit

Permalink
Fixes ocp-power-automation#220 Wildcard move
Browse files Browse the repository at this point in the history
Fixes ocp-power-automation#220 Wildcard move
  • Loading branch information
torwen1 committed Aug 24, 2021
1 parent f677382 commit 04fb077
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
11 changes: 7 additions & 4 deletions modules/3_helpernode/helpernode.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,15 @@ resource "null_resource" "prep_helpernode_tools_curl" {
inline = [
"mkdir -p .openshift",
"rm -rf ocp4-helpernode",
"rm -rf ocp4-extract-helper",
"mkdir -p ocp4-extract-helper",
"echo 'Downloading ocp4-helpernode...'",
"curl -o ocp4-helpernode.zip ${var.helpernode_repo}",
"curl -o ocp4-extract-helper/ocp4-helpernode.zip ${var.helpernode_repo}",
"echo 'Extracting ocp4-helpernode...'",
"unzip ocp4-helpernode.zip",
"mv ocp4-helpernode-master ocp4-helpernode",
"rm ocp4-helpernode.zip"
"cd ocp4-extract-helper && unzip ocp4-helpernode.zip",
"rm -rf ocp4-extract-helper/ocp4-helpernode.zip",
"mv ocp4-extract-helper/ocp4-helpernode* ocp4-helpernode",
"rm -rf ocp4-extract-helper"
]
}
}
Expand Down
11 changes: 7 additions & 4 deletions modules/5_install/install.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@ resource "null_resource" "prep_playbooks_tools_curl" {
provisioner "remote-exec" {
inline = [
"rm -rf ocp4-playbooks",
"rm -rf ocp4-extract-helper",
"mkdir -p ocp4-extract-helper",
"echo 'Downloading ocp4-playbooks...'",
"curl -o ocp4-playbooks.zip ${var.install_playbook_repo}",
"curl -o ocp4-extract-helper/ocp4-playbooks.zip ${var.install_playbook_repo}",
"echo 'Extracting ocp4-playbooks...'",
"unzip ocp4-playbooks.tar.gz",
"mv ocp4-playbooks-master ocp4-playbooks",
"rm ocp4-playbooks.tar.gz"
"cd ocp4-extract-helper && unzip ocp4-playbooks.zip",
"rm -rf ocp4-extract-helper/ocp4-playbooks.zip"
"mv ocp4-extract-helper/ocp4-playbooks* ocp4-playbooks",
"rm -rf ocp4-extract-helper"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion var.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cluster_id = "" # It will use random generated id with
#helpernode_tag = ""
#install_playbook_repo = "https://github.com/ocp-power-automation/ocp4-playbooks"
#install_playbook_tag = ""
#helm_repo = "https://get.helm.sh/helm-v3.4.0-linux-ppc64le.tar.gz"
#helm_repo = "https://get.helm.sh/helm-v3.6.3-linux-ppc64le.tar.gz"

#installer_log_level = "info"
#ansible_extra_options = "-v"
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ variable "install_playbook_tag" {

variable "helm_repo" {
description = "Set the URL after http_server_repo_main_dir pointing to the Python helm modules"
default = "https://get.helm.sh/helm-v3.4.0-linux-ppc64le.tar.gz"
default = "https://get.helm.sh/helm-v3.6.3-linux-ppc64le.tar.gz"
}

variable "ansible_extra_options" {
Expand Down

0 comments on commit 04fb077

Please sign in to comment.