Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform 1.0 requires changes #46

Open
briedel opened this issue Jul 19, 2021 · 2 comments
Open

Terraform 1.0 requires changes #46

briedel opened this issue Jul 19, 2021 · 2 comments

Comments

@briedel
Copy link

briedel commented Jul 19, 2021

Need to change the relative dir in

terraform_init.sh -> terraform -chdir=../../contrib/terraform/openstack init
terraform_apply.sh -> terraform -chdir=../../contrib/terraform/openstack apply -auto-approve -var-file=/home/briedel/code/ewms/jetstream_kubespray/inventory/test_cluster/cluster.tfvars -var="cluster_name=$CLUSTER" -var="network_name=${CLUSTER}-network"

/jetstream_kubespray/contrib/terraform/openstack/modules/compute/main.tf -> Absolute dirs needed

@zonca
Copy link
Owner

zonca commented Jul 20, 2021

Thanks, I'll revisit this next time I update the tutorial.

@zonca
Copy link
Owner

zonca commented Feb 22, 2023

I am hitting this problem again.

I am updating the tutorial to use Kubespray 2.21.0, I was expecting to use one of the Terraform 1.1 or 1.2 releases, in fact the documentation uses the -ch-dir argument which is not supported in 0.14.4.

I tested with Terraform 1.1.9 and 1.2.9, however they both show issues with the path, the -chdir argument makes them execute in a different folder, they cannot find the cluster.tfvars file, and even if we provide the full path, it still fails with:

cannot create ./group_vars/no_floating.yml: Directory nonexistent

Because it is trying to create the file inside the -ch-dir folder instead of the inventory/$CLUSTER folder.

So I am back using 0.14.4, which is ancient but it works.

@julienchastang any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants