Skip to content

Commit

Permalink
adding replication stub for later work
Browse files Browse the repository at this point in the history
  • Loading branch information
jfryman committed Mar 8, 2012
1 parent 4ca6230 commit a38ba7a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions manifests/define/replication.pp
@@ -0,0 +1,39 @@
# Class:
#
# Description
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#

## UNDER CONSTRUCTION
define ldap::define::replication (

) {
File {
owner => 'root',
group => $ldap::params::lp_daemon_group,
before => Class['ldap::server::openldap::service'],
require => Class['ldap::server::openldap::base'],
}
$directory_ensure = $ensure ? {
'present' => 'directory',
'absent' => 'absent',
}

file { "${ldap::params::lp_openldap_var_dir}/${name}/accesslog":
ensure => $directory_ensure,
mode => '0770',
owner => $ldap::params::lp_daemon_user,
}
file { "${ldap::params::lp_openldap_var_dir}/${name}/accesslog/DB_CONFIG":
ensure => $ensure,
mode => '0660',
content => template('ldap/server/openldap/DB_CONFIG.erb')
}
}

0 comments on commit a38ba7a

Please sign in to comment.