Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 9c60354

Browse files
committed
use path.module for relative local-exec path
1 parent 653c58c commit 9c60354

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ resource "null_resource" "preflight-checks" {
1212
key = "${uuid()}"
1313
}
1414
provisioner "local-exec" {
15-
command = "./scripts/local/preflight.sh"
15+
command = "${path.module}/scripts/local/preflight.sh"
1616
}
1717
}

master.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ resource "linode_instance" "k8s_master" {
6969
}
7070

7171
provisioner "local-exec" {
72-
command = "./scripts/kubectl-conf.sh ${terraform.workspace} ${self.ip_address} ${self.private_ip_address} ${var.ssh_public_key}"
72+
command = "${path.module}/scripts/kubectl-conf.sh ${terraform.workspace} ${self.ip_address} ${self.private_ip_address} ${var.ssh_public_key}"
7373
on_failure = "continue"
7474
}
7575
}
7676

7777
data "external" "kubeadm_join" {
78-
program = ["./scripts/kubeadm-token.sh"]
78+
program = ["${path.module}/scripts/kubeadm-token.sh"]
7979

8080
query = {
8181
host = "${linode_instance.k8s_master.0.ip_address}"

0 commit comments

Comments
 (0)