Merge branch 'master' of bitbucket.org:tmakinen/puppet

This commit is contained in:
Ossi Salmi 2013-06-14 09:55:20 +03:00
commit 6ce660a48a
3 changed files with 11 additions and 11 deletions

View file

@ -464,7 +464,7 @@ class ldap::server {
if $::operatinsystemrelease !~ /^5\./ { if $::operatinsystemrelease !~ /^5\./ {
file { "/etc/sysconfig/ldap": file { "/etc/sysconfig/ldap":
ensure => present, ensure => present,
source => "puppet:///modules/ldap/ldap.sysconfig", content => template("ldap/ldap.sysconfig.erb"),
mode => "0644", mode => "0644",
owner => "root", owner => "root",
group => "root", group => "root",
@ -530,16 +530,14 @@ class ldap::server {
} }
} }
if $::selinux == "true" { selinux::manage_fcontext { "/srv/ldap(/.*)?":
selinux::manage_fcontext { "/srv/ldap(/.*)?": type => "slapd_db_t",
before => File["/srv/ldap"],
}
if $ldap_datadir {
selinux::manage_fcontext { "${ldap_datadir}(/.*)?":
type => "slapd_db_t", type => "slapd_db_t",
before => File["/srv/ldap"], before => File[$ldap_datadir],
}
if $ldap_datadir {
selinux::manage_fcontext { "${ldap_datadir}(/.*)?":
type => "slapd_db_t",
before => File[$ldap_datadir],
}
} }
} }

View file

@ -1,5 +1,5 @@
# Options of slapd (see man slapd) # Options of slapd (see man slapd)
SLAPD_OPTIONS="-f /etc/openldap/slapd.conf" SLAPD_OPTIONS="-f /etc/openldap/slapd.conf<% if @ipv6enabled == 'false' %> -4<% end %>"
# At least one of SLAPD_LDAP, SLAPD_LDAPI and SLAPD_LDAPS must be set to 'yes'! # At least one of SLAPD_LDAP, SLAPD_LDAPI and SLAPD_LDAPS must be set to 'yes'!
# #

View file

@ -16,7 +16,9 @@ restrict -6 default nomodify notrap nopeer noquery
# Local users may interrogate the ntp server more closely. # Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify restrict 127.0.0.1 nomodify
<% if @ipv6enabled == "true" -%>
restrict ::1 nomodify restrict ::1 nomodify
<% end -%>
# Drift file. # Drift file.
driftfile /var/lib/ntp/ntp.drift driftfile /var/lib/ntp/ntp.drift