Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created March 19, 2013 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/5197210 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/5197210 to your computer and use it in GitHub Desktop.
private
def set_platform_default_providers
if node.platform_family?(['debian', 'rhel'])
Chef::Platform.set(
:platform => node.platform.to_sym,
:resource => :firewall,
:provider => Chef::Provider::FirewallIptables
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment