From 8ec98cb82131bbee91b872f5cf2ade0b2b3cc882 Mon Sep 17 00:00:00 2001 From: jerome Date: Wed, 29 Jan 2025 23:19:44 +0100 Subject: variables --- main.tf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main.tf') diff --git a/main.tf b/main.tf index 6811051..48c4c08 100644 --- a/main.tf +++ b/main.tf @@ -9,19 +9,19 @@ terraform { provider "proxmox" { pm_api_url = "https://pve.xlinfo.fr:8006/api2/json" - pm_user = "xxxxxxxx@pve" - pm_password = "xxxxxxxx" + pm_user = "stagiaire@pve" + pm_password = "terraform" } resource "proxmox_vm_qemu" "stagiaire" { - vmid = 201 - name = "ubuntu-prenom" - target_node = "pve" - clone = "ubuntu-cloud" + vmid = var.vmid + name = "${var.distribution}-${var.prenom}" + clone = var.image - agent = 1 - os_type = "cloud-init" + target_node = "pve" + os_type = "cloud-init" + agent = 1 cores = 1 sockets = 1 cpu_type = "host" -- cgit v1.2.3