summaryrefslogtreecommitdiff
path: root/manifests/remoteplugin.pp
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2014-12-13 09:34:56 -0500
committerGabriel Filion <gabster@lelutin.ca>2014-12-13 10:21:25 -0500
commit48272434978f95c70e34aebe9ce188157f8f935e (patch)
tree8c940d891cbcba026d56cf8ed2935361debc44fd /manifests/remoteplugin.pp
parent7e03247a9e219fe8e57d544957eb06e305e69fc1 (diff)
parent27c9a5dbc2083dcc20d059008702dd3f75382bcc (diff)
Merge remote-tracking branch 'immerda/master' into merge_immerda
Conflicts: manifests/plugins/interfaces.pp $real_ifs was changed on master and we'd like to keep that change $ifs was changed to use the prefix() function and we'd like to keep that change.
Diffstat (limited to 'manifests/remoteplugin.pp')
-rw-r--r--manifests/remoteplugin.pp19
1 files changed, 13 insertions, 6 deletions
diff --git a/manifests/remoteplugin.pp b/manifests/remoteplugin.pp
index 603cb66..dc03c76 100644
--- a/manifests/remoteplugin.pp
+++ b/manifests/remoteplugin.pp
@@ -1,16 +1,23 @@
-define munin::remoteplugin($ensure = "present", $source, $config = '') {
+# Configure a munin remote plugin
+define munin::remoteplugin(
+ $source,
+ $ensure = 'present',
+ $config = ''
+) {
case $ensure {
- "absent": { munin::plugin{ $name: ensure => absent } }
+ 'absent': { munin::plugin{ $name: ensure => absent } }
default: {
file {
"/var/lib/puppet/modules/munin/plugins/${name}":
source => $source,
- mode => 0755, owner => root, group => 0;
+ mode => '0755',
+ owner => root,
+ group => 0,
}
munin::plugin { $name:
- ensure => $ensure,
- config => $config,
- script_path_in => "/var/lib/puppet/modules/munin/plugins",
+ ensure => $ensure,
+ config => $config,
+ script_path_in => '/var/lib/puppet/modules/munin/plugins',
}
}
}