pihole first setup

This commit is contained in:
tolerryan
2025-02-23 01:54:12 -06:00
parent bca8683252
commit 88357f0fde
6 changed files with 204 additions and 3 deletions

40
pihole.tf Normal file
View File

@@ -0,0 +1,40 @@
resource "proxmox_lxc" "pihole" {
target_node = "pve"
hostname = "promgraph"
vmid = 220
ostemplate = "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
password = "terraform"
unprivileged = true
cores = 5
memory = 4096
swap = 1024
start = true
tags = "terraform"
nameserver = "192.168.0.224"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
features {
nesting = true
}
rootfs {
storage = "local-lvm"
size = "128G"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "192.168.0.224/24"
gw = "192.168.0.1"
}
provisioner "local-exec" {
command = "./.ansible.d/setup.sh $IP"
environment = {
IP = "192.168.0.224"
}
}
}