Update to 2022-03-17 09:00

This commit is contained in:
Daniel Berteaud
2022-03-17 09:00:06 +01:00
parent 4f86b985c4
commit 9022589d6f
13 changed files with 245 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Sync postgres role from LDAP
[Service]
Type=oneshot
PrivateTmp=yes
User={{ ldap2pg_user }}
Group={{ ldap2pg_user }}
ExecStart=/bin/ldap2pg -c {{ ldap2pg_user_info.home }}/ldap2pg.yml --real
TimeoutSec=30m

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Sync postgres role from LDAP
[Timer]
OnCalendar={{ (ldap2pg_sync_freq == 'never') | ternary('daily', ldap2pg_sync_freq) }}
[Install]
WantedBy=timers.target

View File

@@ -0,0 +1 @@
{{ ldap2pg_conf | to_nice_yaml(indent=4) }}