Update 3 files
- /terraform/terraform.tfvars - /terraform/main.tf - /terraform/variables.tf
This commit is contained in:
@@ -38,7 +38,7 @@ resource "proxmox_vm_qemu" "k3master" {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
#Cloud Init Settings
|
#Cloud Init Settings
|
||||||
ipconfig0 = "ip=192.168.20.${var.k3master.ip[count.index]}/24,gw=192.168.20.1"
|
ipconfig0 = "ip=192.168.20.$var.ipprefix}${var.k3master[count]}/24,gw=192.168.20.1"
|
||||||
searchdomain = "durp.loc"
|
searchdomain = "durp.loc"
|
||||||
nameserver = var.dnsserver
|
nameserver = var.dnsserver
|
||||||
sshkeys = var.sshkeys
|
sshkeys = var.sshkeys
|
||||||
@@ -81,7 +81,7 @@ resource "proxmox_vm_qemu" "k3server" {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
#Cloud Init Settings
|
#Cloud Init Settings
|
||||||
ipconfig0 = "ip=192.168.20.${var.k3server.ip[count.index]}/24,gw=192.168.20.1"
|
ipconfig0 = "ip=192.168.20.${var.ipprefix}${var.k3server[count]+1}/24,gw=192.168.20.1"
|
||||||
searchdomain = "durp.loc"
|
searchdomain = "durp.loc"
|
||||||
nameserver = var.dnsserver
|
nameserver = var.dnsserver
|
||||||
sshkeys = var.sshkeys
|
sshkeys = var.sshkeys
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ k3master = {
|
|||||||
drive = "20G"
|
drive = "20G"
|
||||||
storage = "ssd-domains"
|
storage = "ssd-domains"
|
||||||
node = ["overlord"]
|
node = ["overlord"]
|
||||||
ip = ["10"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
k3server = {
|
k3server = {
|
||||||
@@ -21,5 +20,4 @@ k3server = {
|
|||||||
drive = "60G"
|
drive = "60G"
|
||||||
storage = "ssd-domains"
|
storage = "ssd-domains"
|
||||||
node = ["mothership", "mothership"]
|
node = ["mothership", "mothership"]
|
||||||
ip = ["20", "21"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ variable "environment" {
|
|||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "ipprefix" {
|
||||||
|
type = number
|
||||||
|
}
|
||||||
|
|
||||||
variable "k3master" {
|
variable "k3master" {
|
||||||
description = "Defaults of master nodes in K3S"
|
description = "Defaults of master nodes in K3S"
|
||||||
type = object({
|
type = object({
|
||||||
|
|||||||
Reference in New Issue
Block a user