base.pp 681 Bytes
Newer Older
1
class shorewall::base {
2
    package { 'shorewall':
3
        ensure => $shorewall_ensure_version,
4 5 6
    }

    # This file has to be managed in place, so shorewall can find it
7 8
    file {
      '/etc/shorewall/shorewall.conf':
9
        require => Package[shorewall],
10
        notify => Service[shorewall],
mh's avatar
mh committed
11
        owner => root, group => 0, mode => 0644;
12 13 14 15
      '/etc/shorewall/puppet':
        ensure => directory,
        require => Package[shorewall],
        owner => root, group => 0, mode => 0644;
mh's avatar
mh committed
16
    }
17

mh's avatar
mh committed
18
    service{shorewall:
19 20 21 22
        ensure  => running,
        enable  => true,
        hasstatus => true,
        hasrestart => true,
23
        require => Package[shorewall],
24 25
    }
}