From 6840de8261fda8832964098a5f685eb79640f5d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 27 Jun 2018 09:20:32 +0200 Subject: [PATCH] Add own ldap login as replication --- modules/profile/manifests/postgresql_master.pp | 6 ++++++ 1 file changed, 6 insertions(+) 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", -- 2.41.0