init.pp 1.88 KB
Newer Older
1 2
modules_dir { "shorewall": }

mh's avatar
mh committed
3
class shorewall { 
4

mh's avatar
mh committed
5 6
    case $operatingsystem {
        gentoo: { include shorewall::gentoo }
7
        debian: { include shorewall::debian }
mh's avatar
mh committed
8
        centos: { include shorewall::base }
9 10 11 12 13 14
        ubuntu: {
          case $lsbdistcodename {
            karmic: { include shorewall::ubuntu::karmic }
            default: { include shorewall::debian }
          }
        }
15 16
        default: { notice "unknown operatingsystem: $operatingsystem" 
		   include shorewall::base }
mh's avatar
mh committed
17
    }
18

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    file {"/var/lib/puppet/modules/shorewall":
        ensure => directory,
        force => true,
        owner => root, group => 0, mode => 0755; 
    }

    # See http://www.shorewall.net/3.0/Documentation.htm#Zones
    shorewall::managed_file{ zones: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Interfaces
    shorewall::managed_file{ interfaces: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Hosts
    shorewall::managed_file { hosts: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Policy
    shorewall::managed_file { policy: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Rules
    shorewall::managed_file { rules: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Masq
    shorewall::managed_file{ masq: }
    # See http://www.shorewall.net/3.0/Documentation.htm#ProxyArp
    shorewall::managed_file { proxyarp: }
    # See http://www.shorewall.net/3.0/Documentation.htm#NAT
    shorewall::managed_file { nat: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Blacklist
    shorewall::managed_file { blacklist: }
    # See http://www.shorewall.net/3.0/Documentation.htm#rfc1918
    shorewall::managed_file { rfc1918: }
    # See http://www.shorewall.net/3.0/Documentation.htm#Routestopped
    shorewall::managed_file { routestopped: }
mh's avatar
mh committed
47
    # See http://www.shorewall.net/3.0/Documentation.htm#Variables 
48
    shorewall::managed_file { params: }
49
}