update libvirt container version. fix delay when 0 worker or 0 controler are configured

This commit is contained in:
RouxAntoine 2021-05-09 00:40:46 +02:00
parent 6fbedaa474
commit 12c7b511d9
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
4 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
base/images/* base/images/*
!base/images/.gitkeep !base/images/.gitkeep
.idea/
*.iml

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "docker-kvm-qemu-libvirt"] [submodule "docker-kvm-qemu-libvirt"]
path = docker-kvm-qemu-libvirt path = docker-kvm-qemu-libvirt
url = gitolite@antoine-roux.ml:projects/container/docker-kvm-qemu-libvirt.git url = gitolite@antoine-roux.ml:container/docker-kvm-qemu-libvirt.git

@ -1 +1 @@
Subproject commit ebd073a56c23ea79efd65426563182c92855725f Subproject commit 63afcaabb8ec7e10fe641f59d4b324ccf35bc7a1

View File

@ -34,6 +34,7 @@ provider "libvirt" {
} }
resource "null_resource" "delay_controllers_10s" { resource "null_resource" "delay_controllers_10s" {
count = var.number_controller > 0 ? 1 : 0
provisioner "local-exec" { provisioner "local-exec" {
command = "sleep 60" command = "sleep 60"
} }
@ -43,6 +44,7 @@ resource "null_resource" "delay_controllers_10s" {
} }
} }
resource "null_resource" "delay_workers_10s" { resource "null_resource" "delay_workers_10s" {
count = var.number_worker > 0 ? 1 : 0
provisioner "local-exec" { provisioner "local-exec" {
command = "sleep 60" command = "sleep 60"
} }