ibm-cloud-architecture / terraform-openshift4-aws

OpenShift 4 installation automation asset
Apache License 2.0
84 stars 114 forks source link

wrong openshift_installer_url #59

Open zhelezovartem opened 1 year ago

zhelezovartem commented 1 year ago

MacOS 13.0.1

The current installer url is not valid. There are no files downloaded with this url:

  openshift_installer_url = "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${var.openshift_version}"

Running terraform apply with this url will return errors:

│ Error: local-exec provisioner error
│ 
│   with module.installer.null_resource.openshift_installer,
│   on install/installer.tf line 17, in resource "null_resource" "openshift_installer":
│   17:   provisioner "local-exec" {
│ 
│ Error running command 'tar zxvf ./installer-files//openshift-install-*-4*.tar.gz -C ./installer-files/': exit status 1. Output: tar:
│ Error opening archive: Failed to open './installer-files//openshift-install-*-4*.tar.gz'
│ 
╵
╷
│ Error: local-exec provisioner error
│ 
│   with module.installer.null_resource.openshift_client,
│   on install/installer.tf line 43, in resource "null_resource" "openshift_client":
│   43:   provisioner "local-exec" {
│ 
│ Error running command 'tar zxvf ./installer-files//openshift-client-*-4*.tar.gz -C ./installer-files/': exit status 1. Output: tar:
│ Error opening archive: Failed to open './installer-files//openshift-client-*-4*.tar.gz'

If I update the url this way, it works fine:

openshift_installer_url = "https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${var.openshift_version}"