support data disks
This commit is contained in:
parent
09a3a61f5f
commit
1fc775f4ee
2 changed files with 12 additions and 6 deletions
7
debian/main.tf
vendored
7
debian/main.tf
vendored
|
@ -14,13 +14,14 @@ module "tf_debian_vm" {
|
||||||
source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git"
|
source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git"
|
||||||
name = var.name
|
name = var.name
|
||||||
admin_authorized_keys = coalesce(var.admin_authorized_keys, module.invariants.admin_authorized_keys)
|
admin_authorized_keys = coalesce(var.admin_authorized_keys, module.invariants.admin_authorized_keys)
|
||||||
insecure_password = coalesce(var.insecure_password, false)
|
insecure_password = var.insecure_password
|
||||||
use_host_cert = coalesce(var.use_host_cert, true)
|
use_host_cert = var.use_host_cert
|
||||||
disk_pool = coalesce(var.disk_pool, module.invariants.disk_pool)
|
disk_pool = coalesce(var.disk_pool, module.invariants.disk_pool)
|
||||||
disk_base = coalesce(var.disk_base, module.invariants.disk_base)
|
disk_base = coalesce(var.disk_base, module.invariants.disk_base)
|
||||||
disk_base_pool = coalesce(var.disk_base_pool, module.invariants.disk_base_pool)
|
disk_base_pool = coalesce(var.disk_base_pool, module.invariants.disk_base_pool)
|
||||||
cloudinit_pool = coalesce(var.cloudinit_pool, module.invariants.cloudinit_pool)
|
cloudinit_pool = coalesce(var.cloudinit_pool, module.invariants.cloudinit_pool)
|
||||||
bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name)
|
bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name)
|
||||||
ca_host = coalesce(var.ca_host, module.invariants.ca_host)
|
ca_host = coalesce(var.ca_host, module.invariants.ca_host)
|
||||||
memory = coalesce(var.memory, 1024)
|
memory = var.memory
|
||||||
|
data_disks = var.data_disks
|
||||||
}
|
}
|
||||||
|
|
11
debian/variables.tf
vendored
11
debian/variables.tf
vendored
|
@ -9,12 +9,12 @@ variable "admin_authorized_keys" {
|
||||||
|
|
||||||
variable "insecure_password" {
|
variable "insecure_password" {
|
||||||
type = bool
|
type = bool
|
||||||
default = null
|
default = false
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "use_host_cert" {
|
variable "use_host_cert" {
|
||||||
type = bool
|
type = bool
|
||||||
default = null
|
default = true
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "disk_pool" {
|
variable "disk_pool" {
|
||||||
|
@ -49,5 +49,10 @@ variable "ca_host" {
|
||||||
|
|
||||||
variable "memory" {
|
variable "memory" {
|
||||||
type = number
|
type = number
|
||||||
default = null
|
default = 1024
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "data_disks" {
|
||||||
|
type = list(string)
|
||||||
|
default = []
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue