add basic container, configure git repo structure, add sops addon
This commit is contained in:
19
hosts/home-morefine/systemd/sops/sops-decrypt.service
Normal file
19
hosts/home-morefine/systemd/sops/sops-decrypt.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Decrypt SOPS secrets before Docker starts
|
||||
DefaultDependencies=no
|
||||
Before=docker.service
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/srv/gitops
|
||||
Environment=SOPS_AGE_KEY_FILE=/root/.config/sops/age/keys.txt
|
||||
|
||||
# твой скрипт расшифровки (держи в репо или в /usr/local/bin)
|
||||
ExecStart=/srv/gitops/homelab-infra/lab-home/sops-decrypt.sh
|
||||
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user