Generate restic configs from apps.config

This commit is contained in:
2025-09-15 15:49:25 -07:00
parent 0d45d269a1
commit f7a339732e
6 changed files with 29 additions and 7 deletions

View File

@@ -34,6 +34,12 @@ all-apps/nextcloud/redis_password: $(apps_config)
all-apps/nextcloud/nextcloud.env: $(apps_config) make-nextcloud-env.sh
./make-nextcloud-env.sh $(apps_config)
# Backups / Restic / Backblaze
restic-env: $(apps_config) make-restic-generated.sh
./make-restic-generated.sh $(apps_config) > restic-env
restic-password: $(apps_config) make-restic-password.sh
./make-restic-password.sh $(apps_config) > restic-password
ignition.json: cl.yaml app/.dirstamp \
all-apps/lb/Caddyfile \
all-apps/nextcloud/nextcloud_admin_user \
@@ -42,7 +48,9 @@ all-apps/nextcloud/postgres_db \
all-apps/nextcloud/postgres_user \
all-apps/nextcloud/postgres_password \
all-apps/nextcloud/redis_password \
all-apps/nextcloud/nextcloud.env
all-apps/nextcloud/nextcloud.env \
restic-env \
restic-password
cat cl.yaml | docker run --rm --volume /home/tjhintz/.ssh/id_rsa.pub:/pwd/ssh-keys --volume ${PWD}:/pwd --workdir /pwd -i quay.io/coreos/butane:latest -d /pwd > ignition.json
generated.tfvars: $(apps_config) make-generated.sh