From 12c7b511d9b62839b5b253aaf2c434f5e969e3c9 Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Sun, 9 May 2021 00:40:46 +0200 Subject: [PATCH] update libvirt container version. fix delay when 0 worker or 0 controler are configured --- .gitignore | 2 ++ .gitmodules | 2 +- docker-kvm-qemu-libvirt | 2 +- stack/libvirtd.tf | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 27dd786..5e766c2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ base/images/* !base/images/.gitkeep +.idea/ +*.iml diff --git a/.gitmodules b/.gitmodules index c442ad2..5edea30 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "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 diff --git a/docker-kvm-qemu-libvirt b/docker-kvm-qemu-libvirt index ebd073a..63afcaa 160000 --- a/docker-kvm-qemu-libvirt +++ b/docker-kvm-qemu-libvirt @@ -1 +1 @@ -Subproject commit ebd073a56c23ea79efd65426563182c92855725f +Subproject commit 63afcaabb8ec7e10fe641f59d4b324ccf35bc7a1 diff --git a/stack/libvirtd.tf b/stack/libvirtd.tf index 6bcb320..e42f25b 100644 --- a/stack/libvirtd.tf +++ b/stack/libvirtd.tf @@ -34,6 +34,7 @@ provider "libvirt" { } resource "null_resource" "delay_controllers_10s" { + count = var.number_controller > 0 ? 1 : 0 provisioner "local-exec" { command = "sleep 60" } @@ -43,6 +44,7 @@ resource "null_resource" "delay_controllers_10s" { } } resource "null_resource" "delay_workers_10s" { + count = var.number_worker > 0 ? 1 : 0 provisioner "local-exec" { command = "sleep 60" }