projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import the function
[mirror/dsa-puppet.git]
/
modules
/
ferm
/
manifests
/
init.pp
diff --git
a/modules/ferm/manifests/init.pp
b/modules/ferm/manifests/init.pp
index
2ad9750
..
904d83a
100644
(file)
--- a/
modules/ferm/manifests/init.pp
+++ b/
modules/ferm/manifests/init.pp
@@
-1,3
+1,11
@@
+# = Class: ferm
+#
+# This class installs ferm and sets up rules
+#
+# == Sample Usage:
+#
+# include ferm
+#
class ferm {
# realize (i.e. enable) all @ferm::rule virtual resources
Ferm::Rule <| |>
class ferm {
# realize (i.e. enable) all @ferm::rule virtual resources
Ferm::Rule <| |>
@@
-16,17
+24,17
@@
class ferm {
status => '/bin/true',
}
status => '/bin/true',
}
- $munin_ips = split(regsubst($v4ips, '([^,]+)', 'ip_\1', 'G'), ',')
+ $munin_ips = split(regsubst($
::
v4ips, '([^,]+)', 'ip_\1', 'G'), ',')
munin::check { $munin_ips: script => 'ip_', }
if $v6ips {
munin::check { $munin_ips: script => 'ip_', }
if $v6ips {
- $munin6_ips = split(regsubst($v6ips, '([^,]+)', 'ip_\1', 'G'), ',')
- munin::
check { $munin6_ips: script => 'ip_',
}
+ $munin6_ips = split(regsubst($
::
v6ips, '([^,]+)', 'ip_\1', 'G'), ',')
+ munin::
ipv6check { $munin6_ips:
}
}
# get rid of old stuff
}
# get rid of old stuff
- $munin6_ip6s = split(regsubst($v6ips, '([^,]+)', 'ip6_\1', 'G'), ',')
+ $munin6_ip6s = split(regsubst($
::
v6ips, '([^,]+)', 'ip6_\1', 'G'), ',')
munin::check { $munin6_ip6s: ensure => absent }
file { '/etc/ferm':
munin::check { $munin6_ip6s: ensure => absent }
file { '/etc/ferm':
@@
-46,6
+54,10
@@
class ferm {
file { '/etc/ferm/conf.d':
ensure => directory,
mode => '0555',
file { '/etc/ferm/conf.d':
ensure => directory,
mode => '0555',
+ purge => true,
+ force => true,
+ recurse => true,
+ source => 'puppet:///files/empty/',
}
file { '/etc/default/ferm':
source => 'puppet:///modules/ferm/ferm.default',
}
file { '/etc/default/ferm':
source => 'puppet:///modules/ferm/ferm.default',
@@
-55,15
+67,19
@@
class ferm {
}
file { '/etc/ferm/ferm.conf':
source => 'puppet:///modules/ferm/ferm.conf',
}
file { '/etc/ferm/ferm.conf':
source => 'puppet:///modules/ferm/ferm.conf',
+ notify => Service['ferm'],
}
file { '/etc/ferm/conf.d/me.conf':
content => template('ferm/me.conf.erb'),
}
file { '/etc/ferm/conf.d/me.conf':
content => template('ferm/me.conf.erb'),
+ notify => Service['ferm'],
}
file { '/etc/ferm/conf.d/defs.conf':
content => template('ferm/defs.conf.erb'),
}
file { '/etc/ferm/conf.d/defs.conf':
content => template('ferm/defs.conf.erb'),
+ notify => Service['ferm'],
}
file { '/etc/ferm/conf.d/interfaces.conf':
content => template('ferm/interfaces.conf.erb'),
}
file { '/etc/ferm/conf.d/interfaces.conf':
content => template('ferm/interfaces.conf.erb'),
+ notify => Service['ferm'],
}
file { '/etc/logrotate.d/ulogd':
source => 'puppet:///modules/ferm/logrotate-ulogd',
}
file { '/etc/logrotate.d/ulogd':
source => 'puppet:///modules/ferm/logrotate-ulogd',
@@
-71,10
+87,4
@@
class ferm {
require => Package['debian.org'],
}
require => Package['debian.org'],
}
- if getfromhash($site::nodeinfo, 'buildd') {
- file { '/etc/ferm/conf.d/load_ftp_conntrack.conf':
- source => 'puppet:///modules/ferm/conntrack_ftp.conf',
- }
- }
-
}
}