feat(freeipa): add freeipa virtual machine

This commit is contained in:
Kat Inskip 2024-01-30 16:37:20 -08:00
parent 2b3eb84bdd
commit cd26944fbe
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 74 additions and 0 deletions

9
tf/proxmox_images.tf Normal file
View file

@ -0,0 +1,9 @@
resource "proxmox_virtual_environment_file" "fedora39_netinstall_image" {
content_type = "iso"
datastore_id = "local"
node_name = "reisen"
source_file {
path = "https://download.fedoraproject.org/pub/fedora/linux/releases/39/Server/x86_64/iso/Fedora-Server-dvd-x86_64-39-1.5.iso"
}
}

View file

@ -81,3 +81,68 @@ resource "terraform_data" "proxmox_reimu_config" {
]
}
}
resource "proxmox_virtual_environment_vm" "freeipa" {
name = "freeipa"
description = "FreeIPA, our identity management system"
tags = ["terraform", "ubuntu"]
node_name = "reisen"
vm_id = 202
agent {
# read 'Qemu guest agent' section, change to true only when ready
enabled = false
}
startup {
order = "3"
up_delay = "60"
down_delay = "60"
}
disk {
datastore_id = "local-lvm"
file_id = proxmox_virtual_environment_file.fedora39_netinstall_image.id
interface = "scsi0"
}
disk {
datastore_id = "local-zfs"
file_format = "raw"
interface = "scsi1"
size = 32
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
ipv6 {
address = "auto"
}
}
network_device {
bridge = "vmbr0"
}
operating_system {
type = "l26"
}
tpm_state {
version = "v2.0"
}
serial_device {}
}
resource "random_password" "fedora_vm_password" {
length = 16
override_special = "_%@"
special = true
}