summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorHendrik Jaeger <git-commit@henk.geekmail.org>2021-02-26 16:14:11 +0100
committerHendrik Jaeger <git-commit@henk.geekmail.org>2021-02-26 16:14:11 +0100
commita863bc26362df3b64f7e3efd103f329d69e30238 (patch)
tree7f97a7da5cbff928e2bfd9b87a00be373a0e3dd8 /manifests/init.pp
parentaaef3588d530d014e260aa95093ca154ed30c06f (diff)
Cleanup and simplification
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp23
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,
;
}
}