mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2022-03-17 09:00
This commit is contained in:
10
roles/ldap2pg/templates/ldap2pg.service.j2
Normal file
10
roles/ldap2pg/templates/ldap2pg.service.j2
Normal 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
|
9
roles/ldap2pg/templates/ldap2pg.timer.j2
Normal file
9
roles/ldap2pg/templates/ldap2pg.timer.j2
Normal 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
|
||||
|
1
roles/ldap2pg/templates/ldap2pg.yml.j2
Normal file
1
roles/ldap2pg/templates/ldap2pg.yml.j2
Normal file
@@ -0,0 +1 @@
|
||||
{{ ldap2pg_conf | to_nice_yaml(indent=4) }}
|
Reference in New Issue
Block a user