Add workaround for provisioner

This commit is contained in:
Khue Doan 2020-07-20 16:36:06 +07:00
parent 61b5ad8a9f
commit dac2041505

View File

@ -35,6 +35,14 @@ resource "lxd_container" "kubernetes_controllers" {
parent = "${lxd_network.kubernetes_network.name}"
}
}
provisioner "local-exec" {
command = <<EXEC
lxc exec ${self.name} -- bash -xe -c '
touch /hello
'
EXEC
}
}
resource "lxd_container" "kubernetes_workers" {
@ -60,4 +68,12 @@ resource "lxd_container" "kubernetes_workers" {
parent = "${lxd_network.kubernetes_network.name}"
}
}
provisioner "local-exec" {
command = <<EXEC
lxc exec ${self.name} -- bash -xe -c '
touch /hello
'
EXEC
}
}