diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2023-12-20 20:16:28 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2023-12-20 20:21:26 -0800 |
commit | 0a07a58254d1f1cdea9cd904e691e9ee552885e6 (patch) | |
tree | b3917b9004e2921e9c385be35cdd8906567ebbbf /modules | |
parent | 8fc3defa04dd6cc67188055416fce75cb382d432 (diff) | |
download | puppet-0a07a58254d1f1cdea9cd904e691e9ee552885e6.tar puppet-0a07a58254d1f1cdea9cd904e691e9ee552885e6.tar.gz puppet-0a07a58254d1f1cdea9cd904e691e9ee552885e6.tar.bz2 puppet-0a07a58254d1f1cdea9cd904e691e9ee552885e6.tar.xz puppet-0a07a58254d1f1cdea9cd904e691e9ee552885e6.zip |
Disable the slave LDAP backup using the right config file
The cron job uses the slapd file, not the ldap file to configure itself,
so disable the job there instead. This updates commit a27358df4
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openldap/manifests/slave.pp | 6 | ||||
-rw-r--r-- | modules/openldap/templates/slapd-slave.sysconfig (renamed from modules/openldap/templates/ldap-slave.sysconfig) | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/openldap/manifests/slave.pp b/modules/openldap/manifests/slave.pp index bbc65f48..ba0cfb9d 100644 --- a/modules/openldap/manifests/slave.pp +++ b/modules/openldap/manifests/slave.pp @@ -14,6 +14,10 @@ class openldap::slave($rid) inherits openldap { } Openldap::Config['/etc/sysconfig/ldap'] { - content => template('openldap/ldap-slave.sysconfig'), + content => template('openldap/ldap.sysconfig'), + } + + Openldap::Config['/etc/sysconfig/slapd'] { + content => template('openldap/slapd-slave.sysconfig'), } } diff --git a/modules/openldap/templates/ldap-slave.sysconfig b/modules/openldap/templates/slapd-slave.sysconfig index 6ac9055a..9bff24ff 100644 --- a/modules/openldap/templates/ldap-slave.sysconfig +++ b/modules/openldap/templates/slapd-slave.sysconfig @@ -2,7 +2,7 @@ SLAPDSYSLOGLEVEL="0" SLAPDSYSLOGLOCALUSER="local4" -# SLAPD URL list +# SLAPD URL list SLAPDURLLIST="ldap:/// ldaps:/// ldapi:///" # Config file to use for slapd @@ -15,7 +15,7 @@ SLAPDURLLIST="ldap:/// ldaps:/// ldapi:///" # Should file permissions on database files be fixed at startup. Default is yes # FIXPERMS=no -# Whether database recovery should be run before starting slapd in start +# Whether database recovery should be run before starting slapd in start # (not strictly be necessary in 2.3). Default is no # AUTORECOVER=yes @@ -33,6 +33,6 @@ RUN_DB_BACKUP=never # How many files slapd should be able to have open. By default, the process # will inherit the default per-process limit (usually 1024), which may # not be enough, so ulimit -n is run with the value in MAXFILES (which -# defaults to 1024 as well). 4096 is the maximum OpenLDAP will use without +# defaults to 1024 as well). 4096 is the maximum OpenLDAP will use without # recompiling. # MAXFILES=4096 |