Skip to content

Commit

Permalink
Merge pull request #97 from glenjamin/never-firewalld-el6
Browse files Browse the repository at this point in the history
Ensure firewalld is not attempted on el6
  • Loading branch information
martinb3 committed Sep 29, 2015
2 parents 81b3781 + 4e4ff5e commit d24f3c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/provider_firewall_firewalld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class Chef
class Provider::FirewallFirewalld < Chef::Provider::LWRPBase
include FirewallCookbook::Helpers::Firewalld

provides :firewall, os: 'linux', platform_family: %w(rhel fedora)
provides :firewall, os: 'linux', platform_family: %w(rhel fedora) do |node|
node['platform_version'].to_f >= 7.0
end

def whyrun_supported?
false
Expand Down

0 comments on commit d24f3c9

Please sign in to comment.