From 34b3895acffa77529bfeb387f2128a102551b89b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 25 Apr 2023 17:51:45 +0200 Subject: [PATCH] support multiple SSH CA key pairs --- debian/main.tf | 5 +++-- debian/variables.tf | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/main.tf b/debian/main.tf index f890b93..35c5a49 100644 --- a/debian/main.tf +++ b/debian/main.tf @@ -7,11 +7,11 @@ terraform { } 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" { - source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git" + source = "/home/pim/repos/tf-debian-vm" name = var.name domain_name = var.domain_name 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) ca_host = module.invariants.ca_host ca_script = module.invariants.ca_script + ca_key = var.ca_key memory = var.memory data_disk = var.data_disk fixed_address = var.fixed_address diff --git a/debian/variables.tf b/debian/variables.tf index f8e6f1b..2f37ea4 100644 --- a/debian/variables.tf +++ b/debian/variables.tf @@ -81,3 +81,8 @@ variable "disk_size" { type = number default = 1024 * 1024 * 1024 * 15 } + +variable "ca_key" { + type = string + default = "dmz_host" +}