/[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 252 by boklm, Fri Nov 12 22:33:33 2010 UTC revision 253 by boklm, Fri Nov 12 22:36:51 2010 UTC
# Line 1  Line 1 
1  class shorewall {  class shorewall {
2    include concat::setup    include concat::setup
3    
   $shorewalldir = "/tmp/shorewall"  
   
4    define shorewallfile () {    define shorewallfile () {
5       $filename = "${shorewalldir}/${name}"       $filename = "/tmp/shorewall/${name}"
6       $header = "puppet:///modules/shorewall/headers/${name}"       $header = "puppet:///modules/shorewall/headers/${name}"
7       $footer = "puppet:///modules/shorewall/footers/${name}"       $footer = "puppet:///modules/shorewall/footers/${name}"
8       concat{$filename:       concat{$filename:
# Line 29  class shorewall { Line 27  class shorewall {
27    ### Rules    ### Rules
28    shorewallfile{ rules: }    shorewallfile{ rules: }
29    define rule_line($order = 50) {    define rule_line($order = 50) {
30       $filename = "${shorewalldir}/rules"       $filename = "/tmp/shorewall/rules"
31       $line = "${name}\n"       $line = "${name}\n"
32       concat::fragment{"newline_${name}":       concat::fragment{"newline_${name}":
33          target => $filename,          target => $filename,
# Line 56  class shorewall { Line 54  class shorewall {
54    ### Zones    ### Zones
55    shorewallfile{ zones: }    shorewallfile{ zones: }
56    define zone_line($order = 50) {    define zone_line($order = 50) {
57       $filename = "${shorewalldir}/zones"       $filename = "/tmp/shorewall/zones"
58       $line = "${name}\n"       $line = "${name}\n"
59       concat::fragment{"newline_${name}":       concat::fragment{"newline_${name}":
60          target => $filename,          target => $filename,
# Line 76  class shorewall { Line 74  class shorewall {
74    ### Policy    ### Policy
75    shorewallfile{ policy: }    shorewallfile{ policy: }
76    define policy_line($order = 50) {    define policy_line($order = 50) {
77       $filename = "${shorewalldir}/policy"       $filename = "/tmp/shorewall/policy"
78       $line = "${name}\n"       $line = "${name}\n"
79       concat::fragment{"newline_${name}":       concat::fragment{"newline_${name}":
80          target => $filename,          target => $filename,

Legend:
Removed from v.252  
changed lines
  Added in v.253

  ViewVC Help
Powered by ViewVC 1.1.28