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 26 27 |
# 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 => 'root',
mode => '0644';
'/etc/incron.conf':
ensure => file,
content => '';
'/etc/incron.allow':
ensure => if empty($::incron::denied_users) { file } else { absent },
content => join(suffix([ 'root' ] + $::incron::allowed_users, "\n"));
'/etc/incron.deny':
ensure => unless empty($::incron::denied_users) { file } else { absent },
content => join(suffix($::incron::denied_users, "\n"));
}
}
|