File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
terraform/modules/k8s-cluster Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,13 @@ resource "null_resource" "setup-master" {
100100
101101 provisioner "file" {
102102 source = " ./modules/k8s-cluster/setup/"
103- destination = " /home/ubuntu/setup/ "
103+ destination = " /home/ubuntu"
104104 }
105105
106106 provisioner "remote-exec" {
107107 inline = [
108- " chmod +x /home/ubuntu/setup/" ,
109- " sudo /home/ubuntu/setup/common.sh k8s-master" ,
110- " sudo /home/ubuntu/setup/master.sh"
108+ " sudo chmod +x /home/ubuntu/common.sh k8s-master" ,
109+ " sudo chomd +x /home/ubuntu/master.sh"
111110 ]
112111 }
113112
@@ -165,17 +164,17 @@ resource "null_resource" "setup-worker" {
165164
166165 provisioner "file" {
167166 source = " ./modules/k8s-cluster/setup/common.sh"
168- destination = " /home/ubuntu/setup/common.sh "
167+ destination = " /home/ubuntu"
169168 }
170169
171170 provisioner "remote-exec" {
172171 inline = [
173- " chmod +x /home/ubuntu/setup/ common.sh" ,
174- " sudo /home/ubuntu/setup/ common.sh k8s-worker"
172+ " chmod +x /home/ubuntu/common.sh" ,
173+ " sudo /home/ubuntu/common.sh k8s-worker"
175174 ]
176175 }
177176
178- depends_on = [ aws_instance . worker ]
177+ depends_on = [ null_resource . copy-pem ]
179178}
180179
181180resource "null_resource" "join-workers" {
You can’t perform that action at this time.
0 commit comments