Skip to content

My project as a learner is to create a python script to automate the saving of objects from an ldap directory to files of different exploitable formats (ldif, json, yml). Another python script will allow data to be restored to a backup server, using the generated json file. These scripts will be factored into Ansible modules.

Notifications You must be signed in to change notification settings

sodbaveka/ldap_backup_with_ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Table of Contents


  1. General Info
  2. Technologies
  3. Installation
  4. License
  5. Ressources

General Info


Hello World!

My name is Mickaël alias sodbaveka. I created this repository as a lab to discover git, gitHub, Python and Ansible.

My project as a learner is to create a python script to automate the saving of objects from an ldap directory to files of different exploitable formats (ldif, json, yml). Another python script will allow data to be restored to a backup server, using the generated json file. These scripts will be factored into Ansible modules.

Ansible will therefore have the following task:

  • install and configure openLDAP,
  • to install a Web interface allowing the management of the entries (for example, users, groups, DHCP parameters) stored in an LDAP directory,
  • play the backup and restore scripts.

Please feel free to message me if you have any questions.

Bye ;-)

Technologies


A list of technologies used within the project :

  • Linux Debian 10.8
  • ansible 2.10.5
    • config file = /etc/ansible/ansible.cfg
    • configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    • ansible python module location = /usr/local/lib/python3.7/dist-packages/ansible
    • executable location = /usr/local/bin/ansible
  • python version = 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]

Installation


  • Download :
$ git clone https://github.com/sodbaveka/SodbavekaProject.git
  • Complete the path to utility classes :

    • In /etc/ansible/ansible.cfg, add the library/utils directory to the option 'module_utils'.
  • Launch :

$ cd ../path/to/the/file
$ ansible-playbook -i inventories/mainInventory.yml -K mainPlaybook.yml 

License


Ressources


About

My project as a learner is to create a python script to automate the saving of objects from an ldap directory to files of different exploitable formats (ldif, json, yml). Another python script will allow data to be restored to a backup server, using the generated json file. These scripts will be factored into Ansible modules.

Topics

Resources

Stars

Watchers

Forks

Languages