summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-10-10 11:54:10 +0200
committermh <mh@immerda.ch>2014-10-10 11:54:10 +0200
commit27c9a5dbc2083dcc20d059008702dd3f75382bcc (patch)
treec3d9a60176907b4e7fa522ec73fb4148c71f32d2 /manifests
parent3b1623f00f301e50e2b074bf601af7824d1a530d (diff)
more linting and latest puppet-lint support
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client/base.pp13
-rw-r--r--manifests/remoteplugin.pp6
2 files changed, 12 insertions, 7 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
index d35d742..6ed0f71 100644
--- a/manifests/client/base.pp
+++ b/manifests/client/base.pp
@@ -4,11 +4,11 @@ class munin::client::base inherits munin::client::params {
ensure => installed
}
service { 'munin-node':
- ensure => running,
- enable => true,
- hasstatus => true,
- hasrestart => true,
- require => Package[munin-node],
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ require => Package[munin-node],
}
file {'/etc/munin':
ensure => directory,
@@ -36,7 +36,8 @@ class munin::client::base inherits munin::client::params {
use_ssh => $munin::client::use_ssh,
description => $munin::client::description,
group => $munin::client::munin_group,
- config => [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10'],
+ config => [ 'use_node_name yes', 'load.load.warning 5',
+ 'load.load.critical 10'],
export_tag => $munin::client::export_tag,
}
include munin::plugins::base
diff --git a/manifests/remoteplugin.pp b/manifests/remoteplugin.pp
index a2abf69..dc03c76 100644
--- a/manifests/remoteplugin.pp
+++ b/manifests/remoteplugin.pp
@@ -1,5 +1,9 @@
# Configure a munin remote plugin
-define munin::remoteplugin($ensure = 'present', $source, $config = '') {
+define munin::remoteplugin(
+ $source,
+ $ensure = 'present',
+ $config = ''
+) {
case $ensure {
'absent': { munin::plugin{ $name: ensure => absent } }
default: {