From d02be3667151e4a836174d45c2d3cf27937ff602 Mon Sep 17 00:00:00 2001 From: jerome Date: Wed, 21 May 2025 20:36:44 +0200 Subject: test --- variables.tf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'variables.tf') diff --git a/variables.tf b/variables.tf index 0dbb12f..99d67e3 100644 --- a/variables.tf +++ b/variables.tf @@ -1,16 +1,25 @@ # définition des variables +variable "nb" { + description = "nombre de vms" + type = number + default = 1 +} + variable "nom" { description = "nom distribution" type = string + default = "debian" } variable "image" { description = "source de l'image disque" type = string + default = "/home/jerome/Téléchargements/isos/debian-11-generic-amd64.qcow2" } -variable "package" { - description = "nom du package manager (dnf/apt) pour installer qemu-guest-agent le cas échéant)" +variable "packages" { + description = "commande pour installer notamment qemu-guest-agent le cas échéant)" type = string + default = "apt update && apt install -y qemu-guest-agent && systemctl start qemu-guest-agent" } -- cgit v1.2.3