class ldap { package { "ldap": install => latest } # FIXME i don't have the ability to add another service for nagios #$nagSvcs = ( "${nagSvcs}:ldap" ) remotefile { "/usr/local/etc/openldap": mode => 644, recurse => true, source => "config/apps/openldap" } } class ldapserver inherits ldap { service { "ldap": running => true } # FIXME this should be scheduled daily exec { "/usr/local/sbin/slapcat -l /var/openldap/backups/`date +%Y%m%d`.ldif": } # FIXME no tidy support yet #tidy: # /var/openldap/backups age=90 #} }