2 define rule($domain="ip", $chain="INPUT", $rule, $description="", $prio="00") {
3 file { "/etc/ferm/dsa.d/${prio}_${name}":
8 content => template("ferm/ferm-rule.erb"),
9 notify => Exec["ferm restart"],
13 # realize (i.e. enable) all @ferm::rule virtual resources
16 package { ferm: ensure => installed }
24 source => "puppet:///files/empty/",
25 require => Package["ferm"];
28 require => Package["ferm"];
29 "/etc/ferm/ferm.conf":
30 source => "puppet:///ferm/ferm.conf",
31 require => Package["ferm"],
33 notify => Exec["ferm restart"];
34 "/etc/ferm/conf.d/me.conf":
35 content => template("ferm/me.conf.erb"),
36 require => Package["ferm"],
38 notify => Exec["ferm restart"];
39 "/etc/ferm/conf.d/defs.conf":
40 source => "puppet:///ferm/defs.conf",
41 require => Package["ferm"],
43 notify => Exec["ferm restart"];
46 exec { "ferm restart":
47 command => "/etc/init.d/ferm restart",