mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: add syncthing, freepbx
This commit is contained in:
parent
19c5462037
commit
cc990d1d9a
5 changed files with 125 additions and 8 deletions
|
|
@ -18,6 +18,7 @@ locals {
|
|||
proxmox_mediabox_config = jsondecode(file("${path.root}/../systems/mediabox/lxc.json"))
|
||||
proxmox_kubernetes_vm_id = 201
|
||||
proxmox_freeipa_vm_id = 202
|
||||
proxmox_freepbx_vm_id = 203
|
||||
}
|
||||
|
||||
data "proxmox_virtual_environment_vm" "kubernetes" {
|
||||
|
|
@ -451,3 +452,60 @@ module "litterbox_config" {
|
|||
container = proxmox_virtual_environment_container.litterbox
|
||||
config = local.proxmox_litterbox_config.lxc
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "freepbx" {
|
||||
name = "freepbx"
|
||||
tags = ["tf"]
|
||||
description = <<EOT
|
||||
FreePBX, our phone system
|
||||
EOT
|
||||
|
||||
node_name = "reisen"
|
||||
vm_id = local.proxmox_freepbx_vm_id
|
||||
|
||||
agent {
|
||||
# read 'Qemu guest agent' section, change to true only when ready
|
||||
enabled = false
|
||||
}
|
||||
|
||||
startup {
|
||||
order = 8
|
||||
up_delay = 0
|
||||
down_delay = 2
|
||||
}
|
||||
|
||||
cdrom {
|
||||
enabled = true
|
||||
file_id = "local:iso/SNG7-PBX16-64bit-2302-1.iso"
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = 2048
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "local-zfs"
|
||||
file_format = "raw"
|
||||
interface = "scsi0"
|
||||
size = 32
|
||||
}
|
||||
|
||||
network_device {
|
||||
bridge = "vmbr0"
|
||||
}
|
||||
|
||||
operating_system {
|
||||
type = "l26"
|
||||
}
|
||||
|
||||
tpm_state {
|
||||
datastore_id = "local-zfs"
|
||||
version = "v2.0"
|
||||
}
|
||||
|
||||
serial_device {}
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [started, description, operating_system[0], cdrom[0].enabled, cdrom[0].file_id]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue