Skip to content

Instantly share code, notes, and snippets.

@niksfirefly
Created February 14, 2016 20:40
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 niksfirefly/0c7972c942a96d9569f1 to your computer and use it in GitHub Desktop.
Save niksfirefly/0c7972c942a96d9569f1 to your computer and use it in GitHub Desktop.
define profile::firewall::resources (
$for,
$port,
$vacation = false,
$local = true,
$source = '0.0.0.0/0',
$proto = 'tcp',
$action = 'accept',
$chain = 'INPUT',
$ensure = 'present',
) {
firewall { $title:
port => $port,
source => $source,
proto => $proto,
action => $action,
chain => $chain,
ensure => $ensure
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment