'paravoid@debian.org'
]
+ package { [
+ 'klogd',
+ 'sysklogd',
+ 'rsyslog',
+ ]:
+ ensure => purged,
+ }
package { [
'apt-utils',
'bash-completion',
'debian.org',
'dnsutils',
'dsa-munin-plugins',
- 'klogd',
'less',
'lsb-release',
'libfilesystem-ruby1.8',
'mtr-tiny',
'nload',
'pciutils',
- 'rsyslog',
- 'sysklogd',
]:
ensure => installed,
}
require => Package['debian.org']
}
- # set mmap_min_addr to 4096 to mitigate
- # Linux NULL-pointer dereference exploits
+ # set mmap_min_addr to 4096 to mitigate
+ # Linux NULL-pointer dereference exploits
site::sysctl { 'mmap_min_addr':
key => 'vm.mmap_min_addr',
value => '4096',
}
file { '/etc/ferm/dsa.d':
ensure => directory,
+ mode => '0555',
purge => true,
force => true,
recurse => true,
}
file { '/etc/ferm/conf.d':
ensure => directory,
+ mode => '0555',
}
file { '/etc/default/ferm':
source => 'puppet:///modules/ferm/ferm.default',
require => Package['ferm'],
notify => Service['ferm'],
+ mode => '0444',
}
file { '/etc/ferm/ferm.conf':
source => 'puppet:///modules/ferm/ferm.conf',
content => template('ferm/interfaces.conf.erb'),
}
file { '/etc/logrotate.d/ulogd':
- source => 'puppet:///modules/ferm/logrotate-ulogd',
+ source => 'puppet:///modules/ferm/logrotate-ulogd',
+ mode => '0444',
require => Package['debian.org'],
}
file { '/etc/bind/':
ensure => directory,
+ group => bind,
+ mode => '2755',
require => Package['bind9'],
notify => Service['bind9'],
}
file { '/etc/bind/geodns':
ensure => directory,
+ mode => '0755',
}
file { '/etc/bind/named.conf.options':
content => template('named/named.conf.options.erb'),
ensure => directory,
owner => geodnssync,
group => geodnssync,
- mode => '0755',
+ mode => '2755',
}
file { '/etc/bind/geodns/named.conf.geo':
source => 'puppet:///modules/named/common/named.conf.geo',
}
file { '/etc/bind/geodns/trigger':
+ mode => '0555',
source => 'puppet:///modules/named/common/trigger',
}
file { '/etc/ssh/userkeys/geodnssync':
require => Package['ntp'],
notify => Service['ntp']
}
- file { '/etc/ntp.keys.d/':
- ensure => directory,
- require => Package['ntp'],
- notify => Service['ntp']
- }
file { '/etc/ntp.keys.d/ntpkey_iff_merikanto':
source => 'puppet:///modules/ntp/ntpkey_iff_merikanto.pub',
}
file { '/etc/ntp.conf':
content => template('ntp/ntp.conf'),
notify => Service['ntp'],
- require => Package['ntp']
+ require => Package['ntp'],
}
file { '/etc/ntp.keys.d':
ensure => directory,
- group => ntp,
+ group => 'ntp',
mode => '0750',
notify => Service['ntp'],
- require => Package['ntp']
+ require => Package['ntp'],
}
if getfromhash($site::nodeinfo, 'timeserver') {
service { 'samhain':
ensure => running
+ hasstatus => false,
+ pattern => 'samhain',
}
file { '/etc/samhain/samhainrc':
service { 'syslog-ng':
ensure => running
+ hasstatus => false,
+ pattern => 'syslog-ng',
}
file { '/etc/syslog-ng/syslog-ng.conf':
service { 'unbound':
ensure => running,
+ hasstatus => false,
+ pattern => 'unbound',
}
file { '/var/lib/unbound':