Puppet Class: needrestart::config
- Inherits:
- needrestart
- Defined in:
- manifests/config.pp
Overview
class to configure needrestart
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/config.pp', line 4
class needrestart::config ( $config_overrides = lookup('needrestart::configs', Hash, 'deep', { 'default_value' => $needrestart::configs})
) inherits needrestart {
file {'/etc/needrestart/conf.d/':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0755',
require => Class['needrestart::install'],
purge => true,
recurse => true,
}
file {'/etc/needrestart/conf.d/README.needrestart':
require => [File['/etc/needrestart/conf.d/'],Class['needrestart::install']],
}
file {'/etc/needrestart/conf.d/overrides.conf':
owner => 'root',
group => 'root',
mode => '0644',
content => epp('needrestart/overrides.conf', { 'configs' => $config_overrides }),
require => [File['/etc/needrestart/conf.d/'],Class['needrestart::install']],
}
}
|