From 23bbd22fb2507c5001abc9297ffa87e6ce3f4a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 22 Feb 2023 16:11:42 +0100 Subject: [PATCH] add debug logging option --- terraform/all-in-one/main.tf | 1 + terraform/all-in-one/variables.tf | 6 ++++++ terraform/install/variables.tf | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/terraform/all-in-one/main.tf b/terraform/all-in-one/main.tf index a08c780..22a3312 100644 --- a/terraform/all-in-one/main.tf +++ b/terraform/all-in-one/main.tf @@ -19,6 +19,7 @@ module "install" { nixos_partitioner = module.partitioner-build.result.out nixos_system = module.system-build.result.out ssh_private_key = var.ssh_private_key + debug_logging = var.debug_logging } module "nixos-rebuild" { diff --git a/terraform/all-in-one/variables.tf b/terraform/all-in-one/variables.tf index 2c3fd6f..20bf18d 100644 --- a/terraform/all-in-one/variables.tf +++ b/terraform/all-in-one/variables.tf @@ -44,3 +44,9 @@ variable "ssh_private_key" { description = "Content of private key used to connect to the target_host" default = null } + +variable "debug_logging" { + type = bool + description = "Enable debug logging" + default = false +} diff --git a/terraform/install/variables.tf b/terraform/install/variables.tf index a848b24..c774539 100644 --- a/terraform/install/variables.tf +++ b/terraform/install/variables.tf @@ -38,3 +38,9 @@ variable "ssh_private_key" { description = "Content of private key used to connect to the target_host" default = "" } + +variable "debug_logging" { + type = bool + description = "Enable debug logging" + default = false +}