Skip to content

Commit e26da6a

Browse files
authored
fix: File provisioner path ~ changed to /home/opc (#451)
* fix: File provisioner path ~ changed to /home/opc * fix: calico script name changed
1 parent 505c7b2 commit e26da6a

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

examples/verrazzano/verrazzano.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ resource "null_resource" "install_verrazzano" {
1818

1919
provisioner "file" {
2020
content = local.install_verrazzano_operator_template
21-
destination = "~/install_verrazzano_operator"
21+
destination = "/home/opc/install_verrazzano_operator"
2222
}
2323

2424
provisioner "file" {
2525
content = local.install_verrazzano_template
26-
destination = "~/install_verrazzano"
26+
destination = "/home/opc/install_verrazzano"
2727
}
2828

2929
provisioner "remote-exec" {

modules/extensions/activeworker.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ resource "null_resource" "check_worker_active" {
2222

2323
provisioner "file" {
2424
content = local.check_active_worker_template
25-
destination = "~/check_active_worker.sh"
25+
destination = "/home/opc/check_active_worker.sh"
2626
}
2727

2828
provisioner "remote-exec" {

modules/extensions/calico.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ resource "null_resource" "install_calico" {
1818

1919
provisioner "file" {
2020
content = local.install_calico_template
21-
destination = "~/install_sh"
21+
destination = "/home/opc/install_calico.sh"
2222
}
2323

2424
provisioner "remote-exec" {
2525
inline = [
26-
"chmod +x $HOME/install_sh",
27-
"$HOME/install_sh",
28-
# "rm -f $HOME/install_sh"
26+
"chmod +x $HOME/install_calico.sh",
27+
"$HOME/install_calico.sh",
28+
"rm -f $HOME/install_calico.sh"
2929
]
3030
}
3131

modules/extensions/drain.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ resource "null_resource" "drain_nodes" {
1616

1717
provisioner "file" {
1818
content = local.drain_list_template
19-
destination = "~/drainlist.py"
19+
destination = "/home/opc/drainlist.py"
2020
}
2121

2222
provisioner "file" {
2323
content = local.drain_template
24-
destination = "~/drain.sh"
24+
destination = "/home/opc/drain.sh"
2525
}
2626

2727
provisioner "remote-exec" {

modules/extensions/gatekeeper.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resource "null_resource" "enable_gatekeeper" {
1818

1919
provisioner "file" {
2020
content = local.gatekeeper_template
21-
destination = "~/enable_gatekeeper.sh"
21+
destination = "/home/opc/enable_gatekeeper.sh"
2222
}
2323

2424
provisioner "remote-exec" {

modules/extensions/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ resource "null_resource" "update_dynamic_group" {
4646

4747
provisioner "file" {
4848
content = local.update_dynamic_group_template
49-
destination = "~/update_dynamic_group.sh"
49+
destination = "/home/opc/update_dynamic_group.sh"
5050
}
5151

5252
provisioner "remote-exec" {

modules/extensions/k8stools.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "null_resource" "install_kubectl_on_operator" {
1616

1717
provisioner "file" {
1818
content = local.install_kubectl_template
19-
destination = "~/install_kubectl.sh"
19+
destination = "/home/opc/install_kubectl.sh"
2020
}
2121

2222
provisioner "remote-exec" {
@@ -48,7 +48,7 @@ resource "null_resource" "install_helm_on_operator" {
4848

4949
provisioner "file" {
5050
content = local.install_helm_template
51-
destination = "~/install_helm.sh"
51+
destination = "/home/opc/install_helm.sh"
5252
}
5353

5454
provisioner "remote-exec" {

modules/extensions/kubeconfig.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ resource "null_resource" "write_kubeconfig_on_operator" {
4343

4444
provisioner "file" {
4545
content = local.generate_kubeconfig_template
46-
destination = "~/generate_kubeconfig.sh"
46+
destination = "/home/opc/generate_kubeconfig.sh"
4747
}
4848

4949
provisioner "file" {
5050
content = local.token_helper_template
51-
destination = "~/token_helper.sh"
51+
destination = "/home/opc/token_helper.sh"
5252
}
5353

5454
provisioner "file" {
5555
content = local.set_credentials_template
56-
destination = "~/kubeconfig_set_credentials.sh"
56+
destination = "/home/opc/kubeconfig_set_credentials.sh"
5757
}
5858

5959
provisioner "remote-exec" {

modules/extensions/metricserver.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resource "null_resource" "enable_metric_server" {
1818

1919
provisioner "file" {
2020
content = local.metric_server_template
21-
destination = "~/enable_metric_server.sh"
21+
destination = "/home/opc/enable_metric_server.sh"
2222
}
2323

2424
provisioner "remote-exec" {

modules/extensions/secrets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "null_resource" "secret" {
2121

2222
provisioner "file" {
2323
content = local.secret_template
24-
destination = "~/secret.sh"
24+
destination = "/home/opc/secret.sh"
2525
}
2626

2727
provisioner "remote-exec" {

0 commit comments

Comments
 (0)