Compare commits

4 Commits
5 changed files with 53 additions and 4 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ To run `terraform` commands, you must define `proxmox_api_token` and `proxmox_en
```
# ./proxmox_node_name/secrets.tfvars
proxmox_api_token=terraform@pve!terraform=...
proxmox_endpoint=192.168.30.10:8006 # fishburne's IP + Proxmox port
proxmox_api_token="terraform@pve!terraform=..."
proxmox_endpoint="192.168.30.10:8006" # fishburne's IP + Proxmox port
```
## Importing an existing Proxmox resource to Terraform
+4 -1
View File
@@ -64,7 +64,10 @@ resource "proxmox_virtual_environment_container" "this" {
lifecycle {
prevent_destroy = true
ignore_changes = [operating_system]
ignore_changes = [
disk,
operating_system
]
}
}
+1
View File
@@ -119,6 +119,7 @@ variable "is_network_interface" {
variable "network_interface_mac_address" {
type = string
default = null
}
variable "network_interface_name" {
+1
View File
@@ -12,6 +12,7 @@ resource "proxmox_virtual_environment_vm" "this" {
# Ignore the following changes:
ignore_changes = [
initialization,
disk
]
}
+45 -1
View File
@@ -107,6 +107,28 @@ module "hockeypuck" {
network_interface_mac_address = "BC:24:11:82:60:4E"
}
module "operator-parker" {
source = "../../../modules/proxmox-ct"
description = "operator"
ct_id = 116
proxmox_node_name = "parker"
is_unprivileged = true
disk_size = 32
cpu_cores = 2
ct_hostname = "operator"
ip_address = "192.168.30.76/24"
ip_gateway = "192.168.30.1"
dedicated_memory = 1024
# network_interface_mac_address = "BC:24:11:76:06:C3"
}
########## CHONG ##########
module "keymaker" {
source = "../../../modules/proxmox-vm"
@@ -222,6 +244,26 @@ module "ejabberd" {
network_interface_mac_address = "BC:24:11:E2:58:45"
}
module "constructor" {
source = "../../../modules/proxmox-ct"
description = "builder"
ct_id = 117
proxmox_node_name = "chong"
is_unprivileged = true
disk_size = 16
cpu_cores = 2
ct_hostname = "constructor"
ip_address = "192.168.30.66/24"
ip_gateway = "192.168.30.1"
dedicated_memory = 1024
}
########## FISHBURNE ##########
module "operator" {
source = "../../../modules/proxmox-ct"
@@ -234,7 +276,7 @@ module "operator" {
disk_datastore_id = "backup-storage"
disk_size = 16
disk_size = 32
cpu_cores = 2
@@ -245,6 +287,8 @@ module "operator" {
dedicated_memory = 1024
network_interface_mac_address = "BC:24:11:76:06:C3"
is_keyctl = true
}
module "bluepill" {