Newer
Older
#
# Possible parameters:
#
# - which flavor of OpenLDAP package to install
# - install sync scripts
# - authentication methods
# - support whois
# - hosting model
# - where do we store the LDAP databases and log files
# - do we enable bundle remctl service?

Linda J Laubenheimer
committed
#
# Another consideration is where we build the ldap-tools servers from.
# They take only the ldap-utils, libldap, libnet-ldap-perl,
# libnet-ldapapi-perl, libstanford-ldapadmin-perl, libstanford-ldapserver-perl,
# python-ldap, the passive monitoring script(s) and the sync scripts
# $distribution: A valid Debian distribution. See the file apt_setup for
# more information and examples.
#
# $repository: If the package is found in a non-standard location,
# you can indicate the repository here. See the file apt_setup for
# more information and examples.
#
$auth_gssapi = true,
$auth_simple = true,
#
$ldap_debian_distribution = 'stretch',
$ldap_debian_archive = 'debian-stanford',
$ldap_debian_repository = undef,
$sasl_debian_distribution = 'stretch',
$sasl_debian_archive = 'debian-stanford',
$sasl_debian_repository = undef,
#
$port_389_cidrs = [],
$port_636_cidrs = [],
if !($hosting_model in [ 'traditional', 'container', 'tools' ]) {
fail("Unknown hosting model ${hosting_model}")
}
## APT SETUP ##
# APT setup needs to be run before anything else, so
# we ensure this using Puppet "stages":
stage { 'apt':
before => Stage['main'],
}
# Install apt files so we load the correct version of OpenLDAP. Run in the
# "apt" stage so that it gets run first.
class { 'su_ldap::apt_setup':
stage => apt,
ldap_debian_distribution => $ldap_debian_distribution,
ldap_debian_archive => $ldap_debian_archive,
ldap_debian_repository => $ldap_debian_repository,
sasl_debian_distribution => $sasl_debian_distribution,
sasl_debian_archive => $sasl_debian_archive,
sasl_debian_repository => $sasl_debian_repository,
## Basic configuration: /etc/ldap/ldap.conf, /etc/default/slapd, et al.
## Install sync scripts (call from parent class instead)
## Install certificate
## TO DO
## Authentication methods (simple bind and GSSAPI)
class { 'su_ldap::authentication':
auth_gssapi => $auth_gssapi,
auth_simple => $auth_simple,
}
if ($hosting_model == 'traditional') {
class { 'su_ldap::traditional':
keytab_path => $keytab_path,
port_389_cidrs => $port_389_cidrs,
port_636_cidrs => $port_636_cidrs,