Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

damienfrancois/slufl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLUFL is a daemon that triggers Ansible playbook when entries in an LDAP directory change.

The slufld daemon polls the LDAP directory at regular intervals for changes in entries matching a given filter. When updated entries appear, slufld triggers a set of Ansible playbooks and feed them with the information from the LDAP entries.

It can be used for instance to setup a proper environment for new users that are registered to an LDAP directory. It was first developed within the CÉCI to setup new users (for instance create home directory, set user quota, register to Slurm resource manager, etc.)

Quick start

Prerequisites:

 - Python 2.7 (or Python 2.6 and with argparse installed with pip or easy_install)

  • LDAP Python binding (python-ldap) with your operating system's package manager or Pip
  • Ansible (version 2 or above; for the 2.4 and 2.9 versions, see the dedicated branches)

Copy the slufld.conf.template file to /etc/slufld.conf and update its contents, especially the part that refers to the LDAP server configuration. Copy the etc/slufld.conf.d directory to /etc.

You can then test slufl by running it interactively on the entries corresponding to the LDAP filter "uid=*".

./slufld --debug --run-once --foreground "uid=*"

About

Run Ansible playbooks when LDAP entries change.

Resources

License

Stars

Watchers

Forks

Packages

No packages published