/[adm]/puppet/modules/openldap/manifests/master.pp
ViewVC logotype

Contents of /puppet/modules/openldap/manifests/master.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2603 - (show annotations) (download)
Mon Mar 19 14:09:36 2012 UTC (12 years, 1 month ago) by misc
File size: 1278 byte(s)
rename common to init.pp, and split off slave in a separate file
simplify the inheritence tree, since puppet-lint complain
1 class openldap::master inherits openldap {
2 Openldap::Config['/etc/openldap/mandriva-dit-access.conf'] {
3 content => template('openldap/mandriva-dit-access.conf'),
4 }
5
6 $ldap_test_password = extlookup('ldap_test_password','x')
7 $ldap_test_directory = '/var/lib/ldap/test'
8 file { $ldap_test_directory:
9 ensure => directory,
10 group => 'ldap',
11 owner => 'ldap',
12 require => Package['openldap-servers'],
13 before => Service['ldap'],
14 }
15
16 Openldap::Config['/etc/openldap/slapd.conf'] {
17 content => template('openldap/slapd.conf', 'openldap/slapd.test.conf'),
18 }
19
20 Openldap::Config['/etc/sysconfig/ldap'] {
21 content => template('openldap/ldap.sysconfig'),
22 }
23
24 if $::environment == 'test' {
25 # if we are in a test vm, we need to fill the directory
26 # with data
27 package { 'openldap-clients': }
28
29 local_script { 'init_ldap.sh':
30 content => template('openldap/init_ldap.sh'),
31 require => Package['openldap-clients'],
32 }
33
34 exec { 'init_ldap.sh':
35 # taken arbitrary among all possible files
36 creates => '/var/lib/ldap/objectClass.bdb',
37 require => Local_script['init_ldap.sh'],
38 }
39 }
40 }

  ViewVC Help
Powered by ViewVC 1.1.30