From: Ismaƫl Bouya Date: Wed, 27 Jun 2018 07:20:32 +0000 (+0200) Subject: Add own ldap login as replication X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=6840de8261fda8832964098a5f685eb79640f5d1;p=perso%2FImmae%2FProjets%2FPuppet.git Add own ldap login as replication --- diff --git a/modules/profile/manifests/postgresql_master.pp b/modules/profile/manifests/postgresql_master.pp index 6f8854d..067345a 100644 --- a/modules/profile/manifests/postgresql_master.pp +++ b/modules/profile/manifests/postgresql_master.pp @@ -88,9 +88,15 @@ define profile::postgresql_master ( $ldap_server = lookup("base_installation::ldap_server") $ldap_base = lookup("base_installation::ldap_base") $ldap_dn = lookup("base_installation::ldap_dn") + $ldap_cn = lookup("base_installation::ldap_cn") $ldap_password = generate_password(24, $password_seed, "ldap") $ldap_attribute = "cn" + # This is to be replicated to the backup + postgresql::server::role { $ldap_cn: + replication => true, + } + file { "/etc/pam_ldap.d": ensure => directory, mode => "0755",