summaryrefslogtreecommitdiff
path: root/manifests/plugins/interfaces.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-12-10 16:48:01 -0500
committerMicah Anderson <micah@riseup.net>2010-12-10 16:48:01 -0500
commit74f66a8e77b153552ef52efee03187320e1ce877 (patch)
tree9f842135e5a62df7d0ef503dcf045e19238ff013 /manifests/plugins/interfaces.pp
parentfefc399e7e28ec871d91089d535073c2bc705009 (diff)
standardize formatting
Diffstat (limited to 'manifests/plugins/interfaces.pp')
-rw-r--r--manifests/plugins/interfaces.pp32
1 files changed, 16 insertions, 16 deletions
diff --git a/manifests/plugins/interfaces.pp b/manifests/plugins/interfaces.pp
index 99b85ba..de4b75b 100644
--- a/manifests/plugins/interfaces.pp
+++ b/manifests/plugins/interfaces.pp
@@ -1,22 +1,22 @@
# handle if_ and if_err_ plugins
class munin::plugins::interfaces inherits munin::plugins::base {
+
+ $ifs = gsub(split($interfaces, " |,"), "(.+)", "if_\\1")
- $ifs = gsub(split($interfaces, " |,"), "(.+)", "if_\\1")
- munin::plugin {
- $ifs: ensure => "if_";
+ munin::plugin { $ifs: ensure => "if_"; }
+
+ case $operatingsystem {
+ openbsd: {
+ $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_errcoll_\\1")
+ munin::plugin{
+ $if_errs: ensure => "if_errcoll_";
+ }
}
- case $operatingsystem {
- openbsd: {
- $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_errcoll_\\1")
- munin::plugin{
- $if_errs: ensure => "if_errcoll_";
- }
- }
- default: {
- $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_err_\\1")
- munin::plugin{
- $if_errs: ensure => "if_err_";
- }
- }
+ default: {
+ $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_err_\\1")
+ munin::plugin{
+ $if_errs: ensure => "if_err_";
+ }
}
+ }
}