diff options
Diffstat (limited to 'terraform')
| -rwxr-xr-x | terraform/main.tf | 112 | ||||
| -rwxr-xr-x | terraform/variables.tf | 20 |
2 files changed, 0 insertions, 132 deletions
diff --git a/terraform/main.tf b/terraform/main.tf index c4a041c..5b83344 100755 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -1,73 +1,3 @@ -resource "proxmox_lxc" "minio" { - target_node = "hesh" - hostname = "minio" - ostemplate = "local:vztmpl/debian-12-standard_12.0-1_amd64.tar.zst" - password = "${var.minio_password}" - unprivileged = false - cores = 1 - cpulimit = 2 - memory = 2048 - start = true - onboot = true - startup = "order=2,up=30" - - ssh_public_keys = <<-EOT - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM9ONfhaHpY0bSk3o81H/eEp+UxQ9RCszJ7p3f+rvcpH kdam0@art-sr - EOT - - rootfs { - storage = "local-lvm" - size = "3G" - } - - features { - mount = "nfs;" - } - - network { - name = "eth0" - bridge = "vmbr1" - tag = 30 - ip = "dhcp" - mtu = "1420" - } -} - -resource "proxmox_lxc" "sites" { - target_node = "hesh" - hostname = "sites" - ostemplate = "local:vztmpl/debian-12-standard_12.0-1_amd64.tar.zst" - password = "${var.sites_password}" - unprivileged = true - cores = 1 - cpulimit = 1 - memory = 1024 - start = true - onboot = true - startup = "order=3" - - ssh_public_keys = <<-EOT - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM9ONfhaHpY0bSk3o81H/eEp+UxQ9RCszJ7p3f+rvcpH kdam0@art-sr - EOT - - rootfs { - storage = "local-lvm" - size = "3G" - } - - features { - fuse = true - } - - network { - name = "eth0" - bridge = "vmbr1" - tag = 30 - ip = "dhcp" - mtu = "1420" - } -} - resource "proxmox_lxc" "monitoring" { target_node = "hesh" hostname = "monitoring" @@ -103,43 +33,6 @@ resource "proxmox_lxc" "monitoring" { } } -resource "proxmox_lxc" "nc_kumar" { - target_node = "hesh" - hostname = "nc-kumar" - ostemplate = "local:vztmpl/debian-12-standard_12.0-1_amd64.tar.zst" - password = "${var.nc_kumar_password}" - unprivileged = false - cores = 4 - cpulimit = 0 - memory = 6144 - start = true - onboot = true - startup = "order=3" - - ssh_public_keys = <<-EOT - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM9ONfhaHpY0bSk3o81H/eEp+UxQ9RCszJ7p3f+rvcpH kdam0@art-sr - EOT - - rootfs { - storage = "local-lvm" - size = "15G" - } - - features { - nesting = true - fuse = true - mount = "nfs;" - } - - network { - name = "eth0" - bridge = "vmbr1" - tag = 30 - ip = "dhcp" - mtu = "1420" - } -} - resource "proxmox_lxc" "plex" { target_node = "hesh" hostname = "plex" @@ -508,8 +401,3 @@ resource "proxmox_vm_qemu" "s3" { mtu = 1420 } } - -moved { - from = proxmox_lxc.nckumar - to = proxmox_lxc.nc_kumar -} diff --git a/terraform/variables.tf b/terraform/variables.tf index 00b96c8..81e81ab 100755 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,28 +1,8 @@ -variable "minio_password" { - type = string - sensitive = true - description = "Secret key for minio" -} -variable "sites_password" { - type = string - sensitive = true - description = "Secret key for sites" -} -variable "rproxy_password" { - type = string - sensitive = true - description = "Secret key for rproxy" -} variable "monitoring_password" { type = string sensitive = true description = "Secret key for monitoring" } -variable "nc_kumar_password" { - type = string - sensitive = true - description = "Secret key for nc_kumar" -} variable "plex_password" { type = string sensitive = true |
