From 66d1f8fab8134908fae7475a067792f99a76881b Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 17 Oct 2025 15:52:59 +1100 Subject: [PATCH 1/2] feat: manage incus config.yaml/incus-images from vault - use configuration data from Vault to generate config.yaml - use configuration data from Vault to generate incus-images certificate --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 9b7ebb5..bd684e9 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,9 @@ define vault_env export INCUS_CONFIG_DIR=$$(mktemp -d) && \ trap "rm -rf $$INCUS_CONFIG_DIR" EXIT && \ mkdir -p $$INCUS_CONFIG_DIR && \ + mkdir -p $$INCUS_CONFIG_DIR/servercerts && \ + printf '%s\n' "$$INCUS_CONF_INCUSIMAGES_CERT" > $$INCUS_CONFIG_DIR/servercerts/incus-images.crt && \ + printf '%s\n' "$$INCUS_CONF_CONFIG_YAML" > $$INCUS_CONFIG_DIR/config.yaml && \ printf '%s\n' "$$INCUS_CLIENT_CRT" > $$INCUS_CONFIG_DIR/client.crt && \ printf '%s\n' "$$INCUS_CLIENT_KEY" > $$INCUS_CONFIG_DIR/client.key endef -- 2.47.3 From 0b99805b099e77b62cf31cdc9543b053dcd71b69 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 17 Oct 2025 15:58:41 +1100 Subject: [PATCH 2/2] chore: reduce parallelism - reduce plan to 4 - reduce apply to 2 - build servers only have two cores currently --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bd684e9..085db0e 100644 --- a/Makefile +++ b/Makefile @@ -38,11 +38,11 @@ init: plan: init @$(call vault_env) && \ - terragrunt run --all --parallelism 8 --non-interactive plan + terragrunt run --all --parallelism 4 --non-interactive plan apply: init @$(call vault_env) && \ - terragrunt run --all --parallelism 5 --non-interactive apply + terragrunt run --all --parallelism 2 --non-interactive apply output: @$(call vault_env) && \ -- 2.47.3