Skip to content

Commit

Permalink
add option to not try to install collectd-iptables on centos 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Gil Brechbuhler authored and Gil Brechbuhler committed Aug 3, 2015
1 parent 85e230c commit 0be3a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/plugin/iptables.pp
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# https://collectd.org/wiki/index.php/Plugin:IPTables
class collectd::plugin::iptables (
$ensure = present,
$ensure_package = present,
$chains = {},
$interval = undef,
) {
validate_hash($chains)

if $::osfamily == 'Redhat' {
package { 'collectd-iptables':
ensure => $ensure,
ensure => $ensure_package,
}
}

Expand Down

0 comments on commit 0be3a28

Please sign in to comment.