Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Stanford ACS OpenLDAP Puppet Module
===================================
Introduction
------------
Puppet module to manage Stanford's OpenLDAP service. Supports both
traditional servers and containers.
## Usage ##
### OpenLDAP Installation and Configuration ###
The main class `ldap` supports the installation of OpenLDAP and some of
its configuration. The simplest installation (which accepts all the
defaults):
class { 'ldap':
}
This assumes installation on a traditional Debian server and will install
whichever version of OpenLDAP is current for the that version of Debian.
#### Hosting Model
If you are installing onto a container, use the parameter `hosting_model`
and set to `container`:
class { 'ldap':
hosting_model => 'container',
}
The only two acceptable values for `hosting_model` are "`traditional`" and
"`container`".
#### OpenLDAP Version
As mentioned above, the default is to install whichever version of
OpenLDAP `apt` thinks should be installed. This will, of course, depend on
the version of Debian underlying the host.
However, you can override this by using the `install_archive` and
`install_distro`. If the distribution you want to use is already in
included in `/etc/apt/sources.list.d` then use `install_dsitribution` to
specify the distribution:
# Use the "testing" distribution
class { 'ldap':
install_distribution => 'testing',
}
If the distribution is _not_ already included in `/etc/apt/sources.list.d`
then you need also to use `install_repository`. This will add a `.list`
file into `/etc/apt/sources.list.d` that tells `apt` where to look for
the distribution.
# Use the "stretch-prod" distribution.
class { 'ldap':
install_distribution => 'stretch-prod',
install_repository => 'https://debian.stanford.edu/debian-stanford',
}