From aa293951aa0dddf5af3f7f5f6f0db62d36b02fd2 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Mon, 31 May 2021 15:22:11 +0200 Subject: [PATCH] Add PVE LDAP sync timer & service --- proxmox/pve/altinea-ldap-sync.service | 15 +++++++++++++++ proxmox/pve/altinea-ldap-sync.timer | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 proxmox/pve/altinea-ldap-sync.service create mode 100644 proxmox/pve/altinea-ldap-sync.timer diff --git a/proxmox/pve/altinea-ldap-sync.service b/proxmox/pve/altinea-ldap-sync.service new file mode 100644 index 0000000..63c3659 --- /dev/null +++ b/proxmox/pve/altinea-ldap-sync.service @@ -0,0 +1,15 @@ +# This service updates LDAP users and groups within PVE database +# By Julien Escario @ Altinea +# Licensed under GPL V2 +# + +[Unit] +Description=Synchronise Altinea's LDAP auth backend within PVE +Wants=altinea-ldap-sync.timer + +[Service] +Type=oneshot +ExecStart=pveum realm sync LDAP-Altinea + +[Install] +WantedBy=multi-user.target diff --git a/proxmox/pve/altinea-ldap-sync.timer b/proxmox/pve/altinea-ldap-sync.timer new file mode 100644 index 0000000..26b394f --- /dev/null +++ b/proxmox/pve/altinea-ldap-sync.timer @@ -0,0 +1,15 @@ +# This timer is responsible for running the correspondant service unit +# By Julien Escario @ Altinea +# Licensed under GPL V2 +# + +[Unit] +Description=Synchronise Altinea's LDAP auth backend within PVE +Requires=altinea-ldap-sync.service + +[Timer] +Unit=altinea-ldap-sync.service +OnCalendar=Daily + +[Install] +WantedBy=timers.target