Defined Type: openldap::server::schema

Defined in:
manifests/server/schema.pp

Overview

See README.md for details.

Parameters:

  • ensure (Optional[Enum['present', 'absent']]) (defaults to: undef)
  • path (Stdlib::Absolutepath) (defaults to: $facts['os']['family'] ? { 'Debian' => "/etc/ldap/schema/${title}.schema", 'Redhat' => "/etc/openldap/schema/${title}.schema", 'Archlinux' => "/etc/openldap/schema/${title}.schema", 'FreeBSD' => "/usr/local/etc/openldap/schema/${title}.schema", 'Suse' => "/etc/openldap/schema/${title}.schema")


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/server/schema.pp', line 2

define openldap::server::schema (
  Optional[Enum['present', 'absent']] $ensure = undef,
  Stdlib::Absolutepath                $path   = $facts['os']['family'] ? {
    'Debian' => "/etc/ldap/schema/${title}.schema",
    'Redhat' => "/etc/openldap/schema/${title}.schema",
    'Archlinux' => "/etc/openldap/schema/${title}.schema",
    'FreeBSD' => "/usr/local/etc/openldap/schema/${title}.schema",
    'Suse' => "/etc/openldap/schema/${title}.schema",
  }
) {
  include openldap::server

  Class['openldap::server::service']
  -> Openldap::Server::Schema[$title]
  -> Class['openldap::server']
  openldap_schema { $title:
    ensure => $ensure,
    path   => $path,
  }
}