From e4da3088b45b0a28aa6cfcb42a87bc4006b7f42d Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Thu, 3 Jan 2019 12:48:34 +0100 Subject: [PATCH] Add LDAP replica role --- .gitmodules | 3 +++ hosts | 4 ++++ ldap.yml | 7 ++++++- roles/ldap-replica | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) create mode 160000 roles/ldap-replica diff --git a/.gitmodules b/.gitmodules index ad488fb..e9e2a57 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "roles/ldap-client"] path = roles/ldap-client url = git@gitlab.federez.net:erdnaxe/ansible-role-ldap-client.git +[submodule "roles/ldap-replica"] + path = roles/ldap-replica + url = git@gitlab.federez.net:erdnaxe/ansible-role-ldap-replica.git diff --git a/hosts b/hosts index 6390df7..5bdf6b3 100644 --- a/hosts +++ b/hosts @@ -51,3 +51,7 @@ fleming-vm-ldap-replica ovh-pve fleming-pve +# every LDAP replica +[ldap-replica:children] +fleming-vm-ldap-replica + diff --git a/ldap.yml b/ldap.yml index de55522..0e10c2a 100644 --- a/ldap.yml +++ b/ldap.yml @@ -2,5 +2,10 @@ # Plug LDAP on all servers - hosts: all roles: - - ldap-client + - ldap-client + +# Clone LDAP on local geographic location +- hosts: ldap-replica + roles: + - ldap-replica diff --git a/roles/ldap-replica b/roles/ldap-replica new file mode 160000 index 0000000..5e682a8 --- /dev/null +++ b/roles/ldap-replica @@ -0,0 +1 @@ +Subproject commit 5e682a87397110609026d743ac76e8a18cc5f166