summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/syslog.pp
blob: d3abeca1d6474724c202ffe4833f02ef9d95e477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class site_config::syslog {

  # we need to pull in rsyslog from the leap repository until it is availbale in
  # wheezy-backports
  apt::preferences_snippet { 'fixed_rsyslog_anon_package':
    package  => 'rsyslog*',
    priority => '999',
    pin      => 'release o=leap.se',
    before   => Class['rsyslog::install']
  }

  apt::preferences_snippet { 'rsyslog_anon_depends':
    package  => 'libestr0 librelp0',
    priority => '999',
    pin      => 'release a=wheezy-backports',
    before   => Class['rsyslog::install']
  }

  class { 'rsyslog::client':
    log_remote => false,
    log_local  => true
  }

  rsyslog::snippet { '00-anonymize_logs':
    content => '$ModLoad mmanon
action(type="mmanon" ipv4.bits="32" mode="rewrite")'
  }
}