iac/modules/castopod/files/generate_secrets.service.tftpl
Florian Maury 1b9eeb1288 blip
2025-01-10 16:10:39 +01:00

20 lines
606 B
Text

[Unit]
Description = "Generate Secrets"
Wants=${secrets_path_escaped}.mount
After=${secrets_path_escaped}.mount
ConditionPathExists=!${secrets_path}/mariadb-root-password.env
ConditionPathExists=!${secrets_path}/mariadb-password.env
ConditionPathExists=!${secrets_path}/castopod-mariadb-password.env
ConditionPathExists=!${secrets_path}/castopod-analytics.env
ConditionPathExists=!${secrets_path}/castopod-valkey.env
ConditionPathExists=!${secrets_path}/valkey-entrypoint.sh
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/bash /var/opt/generate_secrets.sh
[Install]
WantedBy=default.target