1
0

modules/monitoring: migrate monitoring vpn secrets to age

This commit is contained in:
2023-05-02 19:42:46 +02:00
parent cb12fb64cb
commit dcf8bc4035
19 changed files with 137 additions and 1 deletions

15
bin/add-secret.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
cd $(git rev-parse --show-toplevel)
host=$1
secret=$2
mkdir -p hosts/${host}/secrets
nix run github:ryantm/agenix -- -e hosts/${host}/secrets/new
mv hosts/${host}/secrets/new hosts/${host}/secrets/${secret}.age