diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-19 14:09:31 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-19 14:09:31 +0000 |
commit | 78ae7344a797d22336a646824761919c0b1947ba (patch) | |
tree | 2208e6a796d5b2ee7d7990f8bc99f7e42d89aa63 /modules/openldap/manifests/common.pp | |
parent | 7d9fa450670b083ac96eed85916f76136c044bd4 (diff) | |
download | puppet-78ae7344a797d22336a646824761919c0b1947ba.tar puppet-78ae7344a797d22336a646824761919c0b1947ba.tar.gz puppet-78ae7344a797d22336a646824761919c0b1947ba.tar.bz2 puppet-78ae7344a797d22336a646824761919c0b1947ba.tar.xz puppet-78ae7344a797d22336a646824761919c0b1947ba.zip |
split most class and define from main openldap init.pp file
Diffstat (limited to 'modules/openldap/manifests/common.pp')
-rw-r--r-- | modules/openldap/manifests/common.pp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/openldap/manifests/common.pp b/modules/openldap/manifests/common.pp new file mode 100644 index 00000000..f625f0a4 --- /dev/null +++ b/modules/openldap/manifests/common.pp @@ -0,0 +1,30 @@ +class openldap::common { + package { 'openldap-servers': } + + service { 'ldap': + subscribe => Package['openldap-servers'], + require => Openssl::Self_signed_cert["ldap.$::domain"], + } + + exec { '/etc/init.d/ldap check': + refreshonly => true, + notify => Service['ldap'], + } + + file { '/etc/ssl/openldap/': + ensure => directory, + } + + openssl::self_signed_cert{ "ldap.$::domain": + directory => '/etc/ssl/openldap/', + } + + openldap::config { + '/etc/openldap/slapd.conf': + content => ''; + '/etc/openldap/mandriva-dit-access.conf': + content => ''; + '/etc/sysconfig/ldap': + content => ''; + } +} |