-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added automatic firewall confguration for the given
- Loading branch information
leVF91-da0aA
authored and
leVF91-da0aA
committed
Jun 6, 2014
1 parent
b0f92c6
commit b652c35
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Class varnish::firewall | ||
# | ||
# Uses puppetlabs/firewall module to open port 80 | ||
# | ||
class varnish::firewall ( | ||
$manage_firewall = true, | ||
$varnish_listen_port = '6081', | ||
) { | ||
|
||
firewall { '100 allow port 80 to varnish': | ||
chain => 'INPUT', | ||
proto => 'tcp', | ||
state => ['NEW'], | ||
dport => $varnish_listen_port, | ||
action => 'accept', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters