SISR/ap44/terraform/ap44-test.tf
andgel.sassignol e3bd661307 ap34
2023-01-04 15:46:47 +00:00

31 lines
1.8 KiB
HCL

resource "proxmox_vm_qemu" "ap44-test" {
name = "ap44-test"
os_type = "cloudinit"
desc = "Serveur de test ap44"
target_node = "pxlab3" # la machine Proxmox cible
clone = "Debian-11.6-Template" # le nom de la template a cloner
cores = 1
sockets = 1
memory = 1024
ipconfig0 = "ip=dhcp" # ou bien ip=dhcp
ssh_user = "debian" # le compte SSH de connexion par défaut
sshkeys = <<-EOT
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDOIIu5o8oGZx6fyqRnWZ3ZHf9vV5bpUUKpJ/CzLP6/VkC19ym7Vz76mT7FkMjZ5pwabEv5uYe9suZmA5ut+Y86VybE1SQtpmH4rPsEoYFNTF7mLJtmMAPMsvksd2C3ybk8q9c4asNB3apX+JdfJqEwAKQIIwLQmIsZbSd9aQbinrL+6URew9MvLSaYN/IuPjDLX1tDAOQAqIACE9B07wWviqj+gZDMy/FiFV5IQsdedsFo7z4IxWT3xJYeGck8W4WgVB6NsV78ytD73BYAn6KMg1DvGR35M9TtjXSBtLhtDUx0l3rCqJpaUk+v1/ftChzwntBRXB2R5vo3K4zJlZc4ndtQo2sxUV1HlzuY0MH8Hvqy0b1sXYraVdWeitjHtv3ckzst/PdgPalb3YggYGPwf9THTeHV8Efh89hXZrGapS6U3u7m8Cg4bF2vH4vkBZ49Ab9jj2OjPAtO+xA7RBN2/168Nli2ySY4QvjK4XYB56KxDoPiQgAkC7fak8kiP7s= sio@lab213-22
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDDnruMVFiHqxfyGRN6jAYFYinpXpeuWdN28f3RhtTl1CjnTflLqsSVpafzzdUrXl6Lu5XwuzHFwXSk2jcGGORLVQ1plURJV1VSNlVQcMH97gb19zV7DakGn7S2doKa1x98gKLmaoce5TEdCbuM6bzB/HTfs9UpFnMEqcuz2fae4k+xjBcuRmC9POy8xF4eIlTbEy4oWrArDlkP/5yPSnVCrwAsTIFEtUZVHo+I4i+oJy7kpoQQlNWSa1rqsDx1/mZqIWY+fSh56c3XiBYK5IFjweQjzNfGoGfEpwP4Cv0V6HktlhcEt3PJDgLfzItLdBjS3hcvAk9wWDHikGqSaQcSm0tTTnqnYQVaVA8ULL8ClLFLANxysfMvb91z8Sdgf6nfMzbgRABGrWndePcFyphSJDmJGT2Up6Os+W1wCn3wLpMBPx0tYYprN/Lk4YTfoR37JgeDT70J1HoY75MNrzZW7pvCvs4obyFBt3HA8Q1vct4CSlSDtheactvG4QVTAUM= anas.bouzbakh@lab213-21
EOT
network {
model = "virtio"
bridge = "vmbr0" # le bridge standard pour l'interface réseau
}
disk {
type = "scsi"
storage = "local-lvm"
size = "10G"
format = "raw"
}
}