]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add own ldap login as replication
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jun 2018 07:20:32 +0000 (09:20 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jun 2018 11:26:15 +0000 (13:26 +0200)
modules/profile/manifests/postgresql_master.pp

index 6f8854d7e1eb091a9753102f050f2c01e882b95e..067345afe282892c16bbf5c4613208375f780761 100644 (file)
@@ -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",