diff options
| author | jerome <jerome@xlinfo.fr> | 2025-05-21 20:36:44 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-05-21 20:36:44 +0200 |
| commit | d02be3667151e4a836174d45c2d3cf27937ff602 (patch) | |
| tree | c112459cc3aeeffd57aab10f8612cfce7cdced63 /variables.tf | |
| parent | d3ac465609b0534f75da1f34cfeaf1f2094ad211 (diff) | |
| download | kvm-d02be3667151e4a836174d45c2d3cf27937ff602.tar.gz kvm-d02be3667151e4a836174d45c2d3cf27937ff602.zip | |
test
Diffstat (limited to 'variables.tf')
| -rw-r--r-- | variables.tf | 13 |
1 files changed, 11 insertions, 2 deletions
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" } |
