update
This commit is contained in:
@@ -82,10 +82,9 @@ 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.10.${var.k3master.ip[count.index]}/24,gw=192.168.10.1"
|
||||||
searchdomain = "durp.loc"
|
searchdomain = "durp.loc"
|
||||||
nameserver = var.dnsserver
|
nameserver = var.dnsserver
|
||||||
sshkeys = var.sshkeys
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "proxmox_vm_qemu" "k3server" {
|
resource "proxmox_vm_qemu" "k3server" {
|
||||||
@@ -125,8 +124,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.10.${var.k3server.ip[count.index]}/24,gw=192.168.10.1"
|
||||||
searchdomain = "durp.loc"
|
searchdomain = "durp.loc"
|
||||||
nameserver = var.dnsserver
|
nameserver = var.dnsserver
|
||||||
sshkeys = var.sshkeys
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
dnsserver = "192.168.20.1"
|
dnsserver = "192.168.10.1"
|
||||||
|
|
||||||
sshkeys = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTYqag8OKcV6kIitn3Axlyi3Xr9EeybG10wlglw34fYF0pY+OERy7zZKEju4ijZzQ7eWNlcXLYSorm5Tngkvnz4vbM4b9R7gZjTV9drSGDo0BLkMXNuSTrKwGeokcNkxh+HZcWSK4/SE5zPzvkPj1UvmAgQ4P4N79mqPe5/9gAvdrlUWEtuqVdEHc/FMk4kEZsRu4lg58KoghNCRYMYHOyd1rbHsuWpX5NumPxnosWG22jzqj46rUWEXvA7MrCGGbUDlk5+/h7Bvw4O8nGZLEo/qyaYvChTBj/UqYYBssC4VlW/SNJB1yfrklqdtcknmFVJBi174cQtzZDXOerwneh8/+t7wWpcxkWscxYrwdJspzAU/NGk02xDPaG4F1mdgZ6HIZCQAaw/EbaNbiuU+bhdngEIHUvVmdiy4T09FWIWuJxO6FnAiVIU5K8LpqGLTFp7kjOwAczdQ+KVojm/1A5W/ZoTE/y3Ni1fVaOJFCxSgU7qiKAm7hb2ZXvznNgryc="
|
|
||||||
|
|
||||||
k3master = {
|
k3master = {
|
||||||
count = 1
|
count = 1
|
||||||
|
|||||||
@@ -8,11 +8,6 @@ variable "dnsserver" {
|
|||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "sshkeys" {
|
|
||||||
description = "Public SSH key to inject into CloudInit"
|
|
||||||
type = string
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "pm_password" {
|
variable "pm_password" {
|
||||||
description = "Passowrd to Proxmox provider"
|
description = "Passowrd to Proxmox provider"
|
||||||
type = string
|
type = string
|
||||||
@@ -52,4 +47,4 @@ variable "k3server" {
|
|||||||
node = list(string)
|
node = list(string)
|
||||||
ip = list(number)
|
ip = list(number)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user