diff options
author | duritong <peter.meier+github@immerda.ch> | 2013-08-25 04:01:08 -0700 |
---|---|---|
committer | duritong <peter.meier+github@immerda.ch> | 2013-08-25 04:01:08 -0700 |
commit | 9a98e96366ed2986fcce2b9a6298580583ab62c7 (patch) | |
tree | b2dd2f25149b0752486d7c28092c468a5926663e /manifests/remoteplugin.pp | |
parent | f79c556357cdd4e0a06596b32661e3f156e2fc4f (diff) | |
parent | 42488b04b47ec3fd87f1d45ec3fa90b588545ca1 (diff) |
Merge pull request #12 from oxilion/linting
lintify
Diffstat (limited to 'manifests/remoteplugin.pp')
-rw-r--r-- | manifests/remoteplugin.pp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/manifests/remoteplugin.pp b/manifests/remoteplugin.pp index 603cb66..a2abf69 100644 --- a/manifests/remoteplugin.pp +++ b/manifests/remoteplugin.pp @@ -1,16 +1,19 @@ -define munin::remoteplugin($ensure = "present", $source, $config = '') { +# Configure a munin remote plugin +define munin::remoteplugin($ensure = 'present', $source, $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', } } } |