source: trunk/puppet/modules/puppet-openldap/manifests/classes/smbldap-server.pp @ 444

Last change on this file since 444 was 444, checked in by sebas, 13 years ago

clone del trabajo este git://github.com/camptocamp/puppet-openldap.git : vamos agregando algunas funciones

File size: 1.2 KB
Line 
1class openldap::smbldap-server inherits openldap::server {
2
3  debug ("configuring openldap::smbldap with dn '$ldap_base'")
4
5  package {"smbldap-tools":
6    ensure   => installed,
7    require  => [ Package[slapd], Package[samba-common] ],
8  }
9
10  case $localsid {
11    '': {
12        err("$fqdn: no \$localsid, not installing samba-common")
13    }
14
15    default: {
16      file {"/etc/smbldap-tools/smbldap.conf":
17        content => template("openldap/smbldap.conf.erb"),
18        mode    => 0644,
19        owner   => root,
20        group   => root,
21        require => Package[smbldap-tools];
22      }
23    }
24  }
25
26  file {
27    "/etc/ldap/schema/samba.schema":
28      source  => "puppet:///openldap/etc/ldap/schema/samba.schema",
29      mode    => 0644,
30      owner   => root,
31      group   => root,
32      require => [Package[slapd], File["/etc/ldap/schema"]],
33      notify  => Service[slapd];
34    "/etc/smbldap-tools/":
35      ensure  => directory,
36      mode    => 0755,
37      owner   => root,
38      group   => root,
39      require => Package[smbldap-tools];
40    "/etc/smbldap-tools/smbldap_bind.conf":
41      content => template("openldap/smbldap_bind.conf.erb"),
42      mode    => 0600,
43      owner   => root,
44      group   => root,
45      require => Package[smbldap-tools];
46  }
47}
Note: See TracBrowser for help on using the repository browser.