iac/modules/castopod/files/generate_secrets.service.tftpl

21 lines
606 B
Text
Raw Normal View History

2025-01-10 15:10:39 +00:00
[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