projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scelsi to squeeze
[mirror/dsa-puppet.git]
/
modules
/
ferm
/
manifests
/
init.pp
diff --git
a/modules/ferm/manifests/init.pp
b/modules/ferm/manifests/init.pp
index
467af75
..
7ade513
100644
(file)
--- a/
modules/ferm/manifests/init.pp
+++ b/
modules/ferm/manifests/init.pp
@@
-1,5
+1,5
@@
class ferm {
class ferm {
- define rule($domain="ip", $
chain="INPUT", $rule, $description="", $prio="00"
) {
+ define rule($domain="ip", $
table="filter", $chain="INPUT", $rule, $description="", $prio="00", $notarule=false
) {
file {
"/etc/ferm/dsa.d/${prio}_${name}":
ensure => present,
file {
"/etc/ferm/dsa.d/${prio}_${name}":
ensure => present,
@@
-26,6
+26,7
@@
class ferm {
force => true,
recurse => true,
source => "puppet:///files/empty/",
force => true,
recurse => true,
source => "puppet:///files/empty/",
+ notify => Exec["ferm restart"],
require => Package["ferm"];
"/etc/ferm":
ensure => directory,
require => Package["ferm"];
"/etc/ferm":
ensure => directory,
@@
-34,11
+35,11
@@
class ferm {
ensure => directory,
require => Package["ferm"];
"/etc/default/ferm":
ensure => directory,
require => Package["ferm"];
"/etc/default/ferm":
- source => "puppet:///ferm/ferm.default",
+ source => "puppet:///
modules/
ferm/ferm.default",
require => Package["ferm"],
notify => Exec["ferm restart"];
"/etc/ferm/ferm.conf":
require => Package["ferm"],
notify => Exec["ferm restart"];
"/etc/ferm/ferm.conf":
- source => "puppet:///ferm/ferm.conf",
+ source => "puppet:///
modules/
ferm/ferm.conf",
require => Package["ferm"],
mode => 0400,
notify => Exec["ferm restart"];
require => Package["ferm"],
mode => 0400,
notify => Exec["ferm restart"];
@@
-58,7
+59,7
@@
class ferm {
mode => 0400,
notify => Exec["ferm restart"];
"/etc/logrotate.d/ulogd":
mode => 0400,
notify => Exec["ferm restart"];
"/etc/logrotate.d/ulogd":
- source => "puppet:///ferm/logrotate-ulogd",
+ source => "puppet:///
modules/
ferm/logrotate-ulogd",
require => Package["logrotate"],
;
}
require => Package["logrotate"],
;
}
@@
-70,10
+71,10
@@
class ferm {
}
case extractnodeinfo($nodeinfo, 'buildd') {
}
case extractnodeinfo($nodeinfo, 'buildd') {
-
'true'
: {
+
true
: {
file {
"/etc/ferm/conf.d/load_ftp_conntrack.conf":
file {
"/etc/ferm/conf.d/load_ftp_conntrack.conf":
- source => "puppet:///ferm/conntrack_ftp.conf",
+ source => "puppet:///
modules/
ferm/conntrack_ftp.conf",
require => Package["ferm"],
notify => Exec["ferm restart"];
}
require => Package["ferm"],
notify => Exec["ferm restart"];
}