Adapt vault cleanups
This commit is contained in:
parent
4f6829a4d0
commit
4d1a5f8786
@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
|
||||
if [ "vaultwarden" != "vaultwarden" ]; then
|
||||
for DIR in vault consul nomad; do
|
||||
if [ -d output/${DIR} ]; then
|
||||
for FILE in $(find output/${DIR} -name "*vaultwarden*.hcl" -type f); do
|
||||
NEW_FILE=$(echo "${FILE}" | sed -E "s/vaultwarden/vaultwarden/g")
|
||||
mv "${FILE}" "${NEW_FILE}"
|
||||
done
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
|
5
init/vault-database
Executable file
5
init/vault-database
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
[[ template "common/vault.mkpgrole.sh.tpl" merge .vaultwarden.server . ]]
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
[[- template "common/vault.mkpgrole.sh.tpl"
|
||||
dict "ctx" .
|
||||
"config" (dict "role" .instance "database" "postgres")
|
||||
]]
|
@ -1 +0,0 @@
|
||||
[[ template "common/mv_conf.sh" dict "ctx" . "services" (dict "vaultwarden" .instance) ]]
|
Loading…
x
Reference in New Issue
Block a user