Skip to content

Commit

Permalink
support additional disk for testsuite module
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Oct 15, 2023
1 parent ea930b3 commit b740208
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/cucumber_testsuite/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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", {})
}

Expand Down

0 comments on commit b740208

Please sign in to comment.