feat: manage incus config.yaml/incus-images from vault
All checks were successful
Build / build (pull_request) Successful in 1m44s
All checks were successful
Build / build (pull_request) Successful in 1m44s
- use configuration data from Vault to generate config.yaml - use configuration data from Vault to generate incus-images certificate
This commit is contained in:
parent
0ca4fc0cf0
commit
66d1f8fab8
3
Makefile
3
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user