fix grafana secret sops rule matching
This commit is contained in:
parent
7f500b5e18
commit
9f08134f3f
|
|
@ -247,7 +247,12 @@ ensure_grafana_admin_secret_file() {
|
||||||
printf ' admin-password: "%s"\n' "${password}"
|
printf ' admin-password: "%s"\n' "${password}"
|
||||||
} >"${tmp_file}"
|
} >"${tmp_file}"
|
||||||
|
|
||||||
SOPS_AGE_KEY_FILE="$(sops_age_key_file)" sops --encrypt --input-type yaml --output-type yaml "${tmp_file}" >"${secret_file}"
|
SOPS_AGE_KEY_FILE="$(sops_age_key_file)" sops \
|
||||||
|
--encrypt \
|
||||||
|
--input-type yaml \
|
||||||
|
--output-type yaml \
|
||||||
|
--filename-override "${secret_file}" \
|
||||||
|
"${tmp_file}" >"${secret_file}"
|
||||||
rm -f "${tmp_file}"
|
rm -f "${tmp_file}"
|
||||||
chmod 600 "${secret_file}"
|
chmod 600 "${secret_file}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue