mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-24 01:36:10 +07:00
Add workaround for provisioner
This commit is contained in:
parent
61b5ad8a9f
commit
dac2041505
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user