diff options
author | varac <varacanero@zeromail.org> | 2013-10-16 22:37:12 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-10-16 22:37:12 +0200 |
commit | 4bfb8f12a08700343e25abbabeed529f1c1ca8a3 (patch) | |
tree | f85e06ecfe251650654b76f332d8c8b80c202cd1 | |
parent | 62d76bb7454df2c4f0aebac3efed201f6aa0bdb4 (diff) | |
parent | aa86d15696245c6ded59ca51ceff8f6eaf3119c5 (diff) |
Merge branch 'develop' of ssh://code.leap.se/leap_platform into develop
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | puppet/modules/rsyslog | 0 | ||||
-rw-r--r-- | puppet/modules/site_config/manifests/default.pp | 3 | ||||
-rw-r--r-- | puppet/modules/site_config/manifests/syslog.pp | 28 |
4 files changed, 34 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index 070cb517..0ab46323 100644 --- a/.gitmodules +++ b/.gitmodules @@ -79,3 +79,6 @@ [submodule "puppet/modules/vcsrepo"] path = puppet/modules/vcsrepo url = https://leap.se/git/puppet_vcsrepo +[submodule "puppet/modules/rsyslog"] + path = puppet/modules/rsyslog + url = https://leap.se/git/puppet_rsyslog diff --git a/puppet/modules/rsyslog b/puppet/modules/rsyslog new file mode 160000 +Subproject 20fbda6b91472e656331a9c64630fb207e9f578 diff --git a/puppet/modules/site_config/manifests/default.pp b/puppet/modules/site_config/manifests/default.pp index c7243d5f..2380066a 100644 --- a/puppet/modules/site_config/manifests/default.pp +++ b/puppet/modules/site_config/manifests/default.pp @@ -48,6 +48,9 @@ class site_config::default { stage => setup, } + # install/configure syslog + include site_config::syslog + # install/remove base packages include site_config::packages::base diff --git a/puppet/modules/site_config/manifests/syslog.pp b/puppet/modules/site_config/manifests/syslog.pp new file mode 100644 index 00000000..6a9da460 --- /dev/null +++ b/puppet/modules/site_config/manifests/syslog.pp @@ -0,0 +1,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_libestr0': + package => 'libestr0', + 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")' + } +} |