diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 1a03ca0..5000faf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,10 +1,23 @@ class logcheck ( - $reportlevel = lookup('logcheck_reportlevel', undef, undef, server) + String $reportlevel = 'server' ) { - class { - "::${name}::install": ; - "::${name}::config": - reportlevel => $reportlevel, + package { + ['logcheck','logcheck-database']: + ensure => installed, + ; + } + file { + '/etc/logcheck/ignore.d.server/': + ensure => directory, + source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.server/', + recurse => remote, + replace => true, + ; + '/etc/logcheck/ignore.d.workstation/': + ensure => directory, + source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.workstation/', + recurse => remote, + replace => true, ; } } |