summaryrefslogtreecommitdiff
path: root/variables.tf
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-05-21 20:36:44 +0200
committerjerome <jerome@xlinfo.fr>2025-05-21 20:36:44 +0200
commitd02be3667151e4a836174d45c2d3cf27937ff602 (patch)
treec112459cc3aeeffd57aab10f8612cfce7cdced63 /variables.tf
parentd3ac465609b0534f75da1f34cfeaf1f2094ad211 (diff)
downloadkvm-multi-d02be3667151e4a836174d45c2d3cf27937ff602.tar.gz
kvm-multi-d02be3667151e4a836174d45c2d3cf27937ff602.zip
test
Diffstat (limited to 'variables.tf')
-rw-r--r--variables.tf13
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"
}