mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
df38e127e1
commit
9379faf9eb
24
.puppet/modules/openldap/manifests/schema.pp
Normal file
24
.puppet/modules/openldap/manifests/schema.pp
Normal file
@ -0,0 +1,24 @@
|
||||
# define: openldap::schema
|
||||
#
|
||||
# Install a schema.
|
||||
#
|
||||
# Parameters:
|
||||
#
|
||||
# Actions:
|
||||
#
|
||||
# Requires:
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
define openldap::schema {
|
||||
|
||||
include openldap
|
||||
|
||||
exec { "openldap-schema-${name}":
|
||||
command => "ldapadd -Y EXTERNAL -H ldapi:// -f /etc/openldap/schema/${name}.ldif",
|
||||
group => 'root',
|
||||
require => Service['slapd'],
|
||||
unless => "test -n \"$(find /etc/openldap/slapd.d/cn=config/cn=schema/ -name cn={*}${name}.ldif -print -quit)\"",
|
||||
user => 'root',
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user