/[adm]/puppet/modules/shorewall/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/shorewall/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 242 by boklm, Fri Nov 12 20:38:24 2010 UTC revision 243 by boklm, Fri Nov 12 20:43:03 2010 UTC
# Line 1  Line 1 
1  class shorewall {  class shorewall {
2    include concat::setup    include concat::setup
3    
4      $shorewalldir = "/etc/shorewall_test"
5    
6    define shorewallfile () {    define shorewallfile () {
7       $filename = "/etc/shorewall/${name}"       $filename = "${shorewalldir}/${name}"
8       $header = "puppet:///modules/shorewall/headers/${name}"       $header = "puppet:///modules/shorewall/headers/${name}"
9       $footer = "puppet:///modules/shorewall/footers/${name}"       $footer = "puppet:///modules/shorewall/footers/${name}"
10       concat{$filename:       concat{$filename:
# Line 27  class shorewall { Line 29  class shorewall {
29    ### Rules    ### Rules
30    shorewallfile{ rules: }    shorewallfile{ rules: }
31    define rule_line($order = 50) {    define rule_line($order = 50) {
32       $filename = "/etc/shorewall/rules"       $filename = "${shorewalldir}/shorewall/rules"
33       $line = $name       $line = $name
34       concat::fragment{"newline_${name}":       concat::fragment{"newline_${name}":
35          target => $filename,          target => $filename,
# Line 54  class shorewall { Line 56  class shorewall {
56    ### Zones    ### Zones
57    shorewallfile{ zones: }    shorewallfile{ zones: }
58    define zone_line($order = 50) {    define zone_line($order = 50) {
59       $filename = "/etc/shorewall/zones"       $filename = "${shorewalldir}/shorewall/zones"
60       $line = $name       $line = $name
61       concat::fragment{"newline_${name}":       concat::fragment{"newline_${name}":
62          target => $filename,          target => $filename,
# Line 74  class shorewall { Line 76  class shorewall {
76    ### Policy    ### Policy
77    shorewallfile{ policy: }    shorewallfile{ policy: }
78    define policy_line($order = 50) {    define policy_line($order = 50) {
79       $filename = "/etc/shorewall/policy"       $filename = "${shorewalldir}/shorewall/policy"
80       $line = $name       $line = $name
81       concat::fragment{"newline_${name}":       concat::fragment{"newline_${name}":
82          target => $filename,          target => $filename,

Legend:
Removed from v.242  
changed lines
  Added in v.243

  ViewVC Help
Powered by ViewVC 1.1.28