new test vm for creation process.

This commit is contained in:
tolerryan
2025-11-04 00:33:00 -06:00
parent 18f7f8f83c
commit 798037615a
2 changed files with 63 additions and 4 deletions

View File

@@ -14,9 +14,9 @@ variable "flask_token" {
type = string
}
resource "proxmox_lxc" "wikmd" {
resource "proxmox_lxc" var.hostname {
target_node = "ryuk"
hostname = "wikmd"
hostname = var.hostname
vmid = 217
ostemplate = "cephfs:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst"
password = "terraform"
@@ -25,7 +25,7 @@ resource "proxmox_lxc" "wikmd" {
memory = 4096
swap = 1024
start = true
tags = "terraform;deb13;test"
tags = "terraform;deb13"
nameserver = "192.168.0.224"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
@@ -57,5 +57,4 @@ resource "proxmox_lxc" "wikmd" {
provisioner "local-exec" {
command = "curl -k -X POST https://192.168.0.143:5000/setupansible/${var.hostname}/${var.ip} -H \"Authorization: Bearer ${var.flask_token}\""
}
}