2013-06-06 12:27:28 +02:00
|
|
|
# Class: openldap
|
|
|
|
#
|
|
|
|
# This class installs the openldap servers and clients software.
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
|
|
|
# include openldap
|
|
|
|
#
|
|
|
|
class openldap {
|
|
|
|
|
2015-09-28 17:31:06 +02:00
|
|
|
package { [ 'openldap-servers', 'openldap-clients', ]:
|
2014-11-24 14:42:07 +01:00
|
|
|
ensure => latest,
|
2013-06-06 12:27:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
service { 'slapd':
|
2015-09-28 17:31:06 +02:00
|
|
|
enable => true,
|
2013-06-06 12:27:28 +02:00
|
|
|
ensure => running,
|
2015-07-23 12:40:51 +02:00
|
|
|
require => Package['openldap-servers'],
|
|
|
|
}
|
|
|
|
|
|
|
|
if versioncmp($::operatingsystemmajrelease, '7') >= 0 {
|
2015-07-31 16:24:21 +02:00
|
|
|
openldap::schema{ 'core': }
|
|
|
|
-> openldap::schema{ 'cosine': }
|
|
|
|
-> openldap::schema{ 'inetorgperson': }
|
|
|
|
-> openldap::schema{ 'nis': }
|
|
|
|
-> openldap::schema{ 'misc': }
|
|
|
|
-> openldap::schema{ 'openldap': }
|
2013-06-06 12:27:28 +02:00
|
|
|
}
|
|
|
|
}
|