Puppet Class: incron::config
- Defined in:
- manifests/config.pp
Overview
This class handles incron configuration files.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/config.pp', line 4
class incron::config {
if !empty($incron::allowed_users) and !empty($incron::denied_users) {
fail('Either allowed or denied incron users must be specified, not both.')
}
file {
default:
force => true,
owner => 'root',
group => $incron::root_group,
mode => '0644';
$incron::conf_file:
ensure => file,
content => '';
$incron::allow_file:
ensure => if empty($incron::denied_users) { file } else { absent },
content => join(suffix(['root'] + $incron::allowed_users, "\n"));
$incron::deny_file:
ensure => unless empty($incron::denied_users) { file } else { absent },
content => join(suffix($incron::denied_users, "\n"));
}
}
|