From b74020894478cc04d34542a56f5fdc3dd2fb0a3f Mon Sep 17 00:00:00 2001 From: Michael Calmer Date: Sun, 15 Oct 2023 11:42:04 +0200 Subject: [PATCH] support additional disk for testsuite module --- modules/cucumber_testsuite/main.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/cucumber_testsuite/main.tf b/modules/cucumber_testsuite/main.tf index 9375dac7f..93d159ce0 100644 --- a/modules/cucumber_testsuite/main.tf +++ b/modules/cucumber_testsuite/main.tf @@ -29,7 +29,9 @@ locals { additional_packages = { for host_key in local.hosts : host_key => lookup(var.host_settings[host_key], "additional_packages", []) if var.host_settings[host_key] != null } additional_grains = { for host_key in local.hosts : - host_key => lookup(var.host_settings[host_key], "additional_grains", {}) if var.host_settings[host_key] != null } + host_key => lookup(var.host_settings[host_key], "additional_grains", {}) if var.host_settings[host_key] != null } + repository_disk_size = { for host_key in local.hosts : + host_key => lookup(var.host_settings[host_key], "repository_disk_size", 0) if var.host_settings[host_key] != null } images = { for host_key in local.hosts : host_key => lookup(var.host_settings[host_key], "image", "default") if var.host_settings[host_key] != null ? contains(keys(var.host_settings[host_key]), "image") : false } names = { for host_key in local.hosts : @@ -79,6 +81,7 @@ module "server" { additional_repos = lookup(local.additional_repos, "server", {}) additional_repos_only = lookup(local.additional_repos_only, "server", false) additional_packages = lookup(local.additional_packages, "server", []) + repository_disk_size = lookup(local.repository_disk_size, "server", 0) login_timeout = var.login_timeout saltapi_tcpdump = var.saltapi_tcpdump @@ -118,6 +121,7 @@ module "server_containerized" { additional_repos = lookup(local.additional_repos, "server_containerized", {}) additional_repos_only = lookup(local.additional_repos_only, "server_containerized", false) additional_packages = lookup(local.additional_packages, "server_containerized", []) + repository_disk_size = lookup(local.repository_disk_size, "server", 0) //login_timeout = var.login_timeout //saltapi_tcpdump = var.saltapi_tcpdump @@ -150,6 +154,7 @@ module "proxy" { additional_repos = lookup(local.additional_repos, "proxy", {}) additional_repos_only = lookup(local.additional_repos_only, "proxy", false) additional_packages = lookup(local.additional_packages, "proxy", []) + repository_disk_size = lookup(local.repository_disk_size, "server", 0) provider_settings = lookup(local.provider_settings_by_host, "proxy", {}) }