Update to 2022-03-17 19:00

This commit is contained in:
Daniel Berteaud
2022-03-17 19:00:06 +01:00
parent 61d1212b84
commit 86f6bd4781
8 changed files with 32 additions and 6 deletions

View File

@@ -6,5 +6,5 @@ Type=oneshot
PrivateTmp=yes
User={{ ldap2pg_user }}
Group={{ ldap2pg_user }}
ExecStart=/bin/ldap2pg -c /etc/ldap2pg.yml --real
ExecStart=/bin/ldap2pg -c /etc/ldap2pg.yml --{{ ldap2pg_dry_mode | ternary('dry', 'real') }}
TimeoutSec=30m

View File

@@ -2,7 +2,8 @@
Description=Sync postgres role from LDAP
[Timer]
OnCalendar={{ (ldap2pg_sync_freq == 'never') | ternary('daily', ldap2pg_sync_freq) }}
OnCalendar={{ ldap2pg_sync_freq }}
RandomizedDelaySec=5m
[Install]
WantedBy=timers.target