summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorroot <root@wilhelm.netwichtig.de>2018-09-07 21:06:48 +0300
committerroot <root@wilhelm.netwichtig.de>2018-09-07 21:06:48 +0300
commit17900b0075c68808e9f33908fb9fac4563e490fc (patch)
tree3c550a3fa31b21b227ae3e4a911fdbae7cf17107 /manifests
Updates/downdates for puppet4 and adding wilhelm
downgrade hiera config move modules to expected path rewrite apt::config module remove obsolete variables from manifests
Diffstat (limited to 'manifests')
-rw-r--r--manifests/config.pp64
-rw-r--r--manifests/init.pp9
-rw-r--r--manifests/install.pp8
3 files changed, 81 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
new file mode 100644
index 0000000..58e07b7
--- /dev/null
+++ b/manifests/config.pp
@@ -0,0 +1,64 @@
+class logcheck::config ($reportlevel) {
+ file {
+# '/etc/logcheck/logcheck.conf':
+# ensure => present,
+# content => template("logcheck/etc/logcheck/logcheck.conf.${::fqdn}"),
+# ;
+
+ '/etc/logcheck/ignore.d.server/':
+ ensure => directory,
+ source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.server/',
+ recurse => remote,
+ replace => false,
+# group => 'logcheck',
+# mode => '2750',
+ ;
+
+ '/etc/logcheck/ignore.d.workstation/':
+ ensure => directory,
+ source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.workstation/',
+ recurse => remote,
+ replace => false,
+# group => 'logcheck',
+# mode => '2750',
+ ;
+
+# '/etc/logcheck/ignore.d.workstation/local-wpasupplicant':
+# ensure => present,
+# source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.workstation/local-wpasupplicant',
+# group => 'logcheck',
+# ;
+#
+# '/etc/logcheck/ignore.d.workstation/local-dbus':
+# ensure => present,
+# source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.workstation/local-dbus',
+# group => 'logcheck',
+# ;
+#
+# '/etc/logcheck/ignore.d.workstation/local-kde':
+# ensure => present,
+# source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.workstation/local-kde',
+# group => 'logcheck',
+# ;
+#
+# '/etc/logcheck/ignore.d.workstation/local-networkmanager':
+# ensure => present,
+# source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.workstation/local-networkmanager',
+# group => 'logcheck',
+# ;
+# '/etc/logcheck/ignore.d.workstation/local-dhcpcd':
+# ensure => absent,
+# ;
+# '/etc/logcheck/ignore.d.server/local-sympa':
+# ensure => present,
+# source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.server/local-sympa',
+# group => 'logcheck',
+# ;
+# '/etc/logcheck/ignore.d.server/local-dhcpcd':
+# ensure => present,
+# source => 'puppet:///modules/logcheck/etc/logcheck/ignore.d.server/local-dhcpcd',
+# group => 'logcheck',
+# ;
+ }
+}
+
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..fde9661
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,9 @@
+class logcheck ($reportlevel = lookup('logcheck_reportlevel')) {
+ class {
+ "::${name}::install": ;
+ "::${name}::config":
+ reportlevel => $reportlevel,
+ ;
+ }
+}
+
diff --git a/manifests/install.pp b/manifests/install.pp
new file mode 100644
index 0000000..03367b1
--- /dev/null
+++ b/manifests/install.pp
@@ -0,0 +1,8 @@
+class logcheck::install {
+ package {
+ ['logcheck','logcheck-database']:
+ ensure => installed,
+ ;
+ }
+}
+