support multiple SSH CA key pairs
This commit is contained in:
parent
175ae8a6c3
commit
34b3895acf
2 changed files with 8 additions and 2 deletions
5
debian/main.tf
vendored
5
debian/main.tf
vendored
|
@ -7,11 +7,11 @@ terraform {
|
||||||
}
|
}
|
||||||
|
|
||||||
module "invariants" {
|
module "invariants" {
|
||||||
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//invariants"
|
source = "/home/pim/repos/tf-modules/invariants"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "tf_debian_vm" {
|
module "tf_debian_vm" {
|
||||||
source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git"
|
source = "/home/pim/repos/tf-debian-vm"
|
||||||
name = var.name
|
name = var.name
|
||||||
domain_name = var.domain_name
|
domain_name = var.domain_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)
|
||||||
|
@ -24,6 +24,7 @@ module "tf_debian_vm" {
|
||||||
bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name)
|
bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name)
|
||||||
ca_host = module.invariants.ca_host
|
ca_host = module.invariants.ca_host
|
||||||
ca_script = module.invariants.ca_script
|
ca_script = module.invariants.ca_script
|
||||||
|
ca_key = var.ca_key
|
||||||
memory = var.memory
|
memory = var.memory
|
||||||
data_disk = var.data_disk
|
data_disk = var.data_disk
|
||||||
fixed_address = var.fixed_address
|
fixed_address = var.fixed_address
|
||||||
|
|
5
debian/variables.tf
vendored
5
debian/variables.tf
vendored
|
@ -81,3 +81,8 @@ variable "disk_size" {
|
||||||
type = number
|
type = number
|
||||||
default = 1024 * 1024 * 1024 * 15
|
default = 1024 * 1024 * 1024 * 15
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "ca_key" {
|
||||||
|
type = string
|
||||||
|
default = "dmz_host"
|
||||||
|
}
|
||||||
|
|
Reference in a new issue