diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-30 22:16:39 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-31 22:59:53 +0200 |
commit | 548061112d2e2627317f9379d2f501fcf3f6ea54 (patch) | |
tree | 19fb949ad1fb965b4705897650809b4ffb6e9f29 /modules/base_installation/manifests/ldap.pp | |
parent | 1508e956adaa97b7a82c27537f4b124266dacdf0 (diff) | |
download | Puppet-548061112d2e2627317f9379d2f501fcf3f6ea54.tar.gz Puppet-548061112d2e2627317f9379d2f501fcf3f6ea54.tar.zst Puppet-548061112d2e2627317f9379d2f501fcf3f6ea54.zip |
Add LDAP support
Diffstat (limited to 'modules/base_installation/manifests/ldap.pp')
-rw-r--r-- | modules/base_installation/manifests/ldap.pp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/base_installation/manifests/ldap.pp b/modules/base_installation/manifests/ldap.pp new file mode 100644 index 0000000..1825700 --- /dev/null +++ b/modules/base_installation/manifests/ldap.pp | |||
@@ -0,0 +1,24 @@ | |||
1 | class base_installation::ldap inherits base_installation { | ||
2 | ensure_packages(["openldap"]) | ||
3 | |||
4 | File { | ||
5 | mode => "0644", | ||
6 | owner => "root", | ||
7 | group => "root", | ||
8 | } | ||
9 | |||
10 | file { '/etc/openldap': | ||
11 | ensure => directory, | ||
12 | require => Package["openldap"], | ||
13 | recurse => true, | ||
14 | purge => true, | ||
15 | force => true, | ||
16 | } | ||
17 | |||
18 | file { '/etc/openldap/ldap.conf': | ||
19 | ensure => present, | ||
20 | content => template("base_installation/ldap/ldap.conf.erb"), | ||
21 | require => File['/etc/openldap'], | ||
22 | } | ||
23 | |||
24 | } | ||