diff --git a/Makefile b/Makefile index 9b7ebb5..085db0e 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 @@ -35,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) && \