stage #8

Merged
micqdf merged 10 commits from stage into master 2025-04-17 16:12:34 +00:00
2 changed files with 22 additions and 22 deletions
Showing only changes of commit 72f0080660 - Show all commits

View File

@ -4,9 +4,9 @@ data "template_file" "cloud_init_alpaca" {
template = file("${path.module}/files/cloud_init.yaml") template = file("${path.module}/files/cloud_init.yaml")
vars = { vars = {
ssh_key = file("~/.ssh/id_ed25519.pub") ssh_key = file("~/.ssh/id_ed25519.pub")
hostname = "alpaca-${count.index + 1}" hostname = "alpaca-${count.index + 1}"
domain = "home.arpa" domain = "home.arpa"
tailscale_key = var.tailscale_key tailscale_key = var.tailscale_key
} }
} }
@ -39,9 +39,9 @@ data "template_file" "cloud_init_llama" {
template = file("${path.module}/files/cloud_init.yaml") template = file("${path.module}/files/cloud_init.yaml")
vars = { vars = {
ssh_key = file("~/.ssh/id_ed25519.pub") ssh_key = file("~/.ssh/id_ed25519.pub")
hostname = "llama-${count.index + 1}" hostname = "llama-${count.index + 1}"
domain = "home.arpa" domain = "home.arpa"
tailscale_key = var.tailscale_key tailscale_key = var.tailscale_key
} }
} }

View File

@ -23,14 +23,14 @@ resource "proxmox_vm_qemu" "alpacas" {
full_clone = false full_clone = false
agent = 1 agent = 1
sockets = var.sockets sockets = var.sockets
cores = var.cores cores = var.cores
memory = var.memory memory = var.memory
scsihw = "virtio-scsi-pci" scsihw = "virtio-scsi-pci"
boot = "order=scsi0" boot = "order=scsi0"
ipconfig0 = "ip=dhcp" ipconfig0 = "ip=dhcp"
cicustom = "user=local:snippets/cloud_init_alpaca_${count.index + 1}.yaml" cicustom = "user=local:snippets/cloud_init_alpaca_${count.index + 1}.yaml"
depends_on = [null_resource.upload_cloud_init_alpaca] depends_on = [null_resource.upload_cloud_init_alpaca]
disk { disk {
slot = "scsi0" slot = "scsi0"
@ -56,14 +56,14 @@ resource "proxmox_vm_qemu" "llamas" {
full_clone = false full_clone = false
agent = 1 agent = 1
sockets = var.sockets sockets = var.sockets
cores = var.cores cores = var.cores
memory = var.memory memory = var.memory
scsihw = "virtio-scsi-pci" scsihw = "virtio-scsi-pci"
boot = "order=scsi0" boot = "order=scsi0"
ipconfig0 = "ip=dhcp" ipconfig0 = "ip=dhcp"
cicustom = "user=local:snippets/cloud_init_llama_${count.index + 1}.yaml" cicustom = "user=local:snippets/cloud_init_llama_${count.index + 1}.yaml"
depends_on = [null_resource.upload_cloud_init_llama] depends_on = [null_resource.upload_cloud_init_llama]
disk { disk {
slot = "scsi0" slot = "scsi0"