Newer
Older
# Manage the sync scripts and their configurations.
# the reason that each one is selected seperately is that not all environments get the same sync scripts.
# while these are intended for install on the tools server,
# this is still flexible enough to put it on the master
# select the sync scripts one by one in the hiera file
$enable_ldap_wg_maint = false,
$enable_ldap_sync_attribute = false,
$enable_ldap_group_maint = false,
$enable_ldap_sync_sugal_attributes = false,
$enable_ldap_alias_maint = false,
$enable_posix_account_sync = false,
class { 'su_ldap::syncs::ldap_wg_maint':
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
if ($enable_ldap_group_maint) {
class { 's_ldap::base::syncs::ldap_group_maint':
ensure => present
}
}
if ($enable_ldap_sync_sugal_attributes) {
class { 'su_ldap::syncs::ldap_sync_sugal_attributes':
ensure => present
}
}
if () {
class { 'su_ldap::syncs::ldap_sync_suprivilegegroup':
ensure => present
}
}
if () {
class{ 'su_ldap::syncs::ldap_alias_maint':
ensure => present
}
}
if ($enable_posix_account_sync) {
su_ldap::syncs::posix_account_sync { 'aeroastroarl': ensure => present }
su_ldap::syncs::posix_account_sync { 'anesthesia': ensure => present }
su_ldap::syncs::posix_account_sync { 'statistics': ensure => present }
}
if ($enable_ldap_reports) {
class{ 'su_ldap::syncs::ldap-reports':
ensure => present
}
}
file { '/etc/cron.d/ldap-reports':
ensure => present,
mode => '0644',
source => "puppet:///modules/s_ldap/etc/cron.d/ldap-reports",
}