From fd2ea44b2670fbe29c4d29dff6ee0c9bd42ea92d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 13 Jan 2025 01:05:34 +0000 Subject: [PATCH] Add VM Authentik configuration --- terraform/proxmox/Authentik.tf | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 terraform/proxmox/Authentik.tf diff --git a/terraform/proxmox/Authentik.tf b/terraform/proxmox/Authentik.tf new file mode 100644 index 0000000..a12e7e8 --- /dev/null +++ b/terraform/proxmox/Authentik.tf @@ -0,0 +1,51 @@ +resource "proxmox_virtual_environment_vm" "Authentik" { + node_name = "prox" + vm_id = "125" + name = "Authentik" + description = "authentik" + + cpu { + cores = "2" + type = "host" + architecture = "x86_64" + } + + memory { + dedicated = "4096" + } + + network_device { + bridge = "vmbr0" + vlan_id = null + } + + disk { + datastore_id = "Fast2Tb" + size = "40" + interface = "scsi0" + } + + clone { + vm_id = "9996" + } + + initialization { + ip_config { + ipv4 { + address = "dhcp" + gateway = null + } + } + + user_data_file_id = proxmox_virtual_environment_file.cloud_config.id + } + + lifecycle { + ignore_changes = [ + initialization[0].user_account[0].keys, + initialization[0].user_account[0].password, + initialization[0].user_account[0].username, + initialization[0].user_data_file_id + ] + } +}