Skip to content

Instantly share code, notes, and snippets.

@joeywas

joeywas/init.pp Secret

Created September 15, 2016 22:49
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 joeywas/d8f0d676b9ef3beb54ae0d617ef69633 to your computer and use it in GitHub Desktop.
Save joeywas/d8f0d676b9ef3beb54ae0d617ef69633 to your computer and use it in GitHub Desktop.
firewall_custom init.pp
class firewall_custom($firewall_data = false) {
include firewall_custom::pre
include firewall_custom::post
include firewall
resources { "firewall":
purge => true
}
if $firewall_data != false {
create_resources('firewall', $firewall_data)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment