X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Fmanifests%2Finit.pp;h=af8f8bbf68decbda88d3299046393556335ea7df;hb=387aca4f3d4660c2811cc11cc2ab5b709d6c5154;hp=a7ff786d8bde24196526d055e8fff64a08d48306;hpb=4b0d5b04319abfcdd5ef3a80b31f7728900f358e;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian_org/manifests/init.pp b/modules/debian_org/manifests/init.pp index a7ff786d8..af8f8bbf6 100644 --- a/modules/debian_org/manifests/init.pp +++ b/modules/debian_org/manifests/init.pp @@ -12,13 +12,14 @@ class debian_org { $servicefiles = 'absent' } - $debianadmin = [ - 'debian-archive-debian-samhain-reports@master.debian.org', - 'debian-admin@ftbfs.de', - 'weasel@debian.org', - 'steve@lobefin.net', - 'zumbi@oron.es' - ] + # the virtual facter needs virt-what on jessie to work + if versioncmp($::lsbmajdistrelease, '9') < 0 { + package { 'virt-what': ensure => installed } + } else { + package { 'virt-what': ensure => purged } + } + + $samhain_recipients = hiera('samhain_recipients') package { [ 'klogd', @@ -26,12 +27,15 @@ class debian_org { 'rsyslog', 'os-prober', 'apt-listchanges', + 'mlocate', ]: ensure => purged, } package { [ 'debian.org', + 'debian.org-recommended', 'dsa-munin-plugins', + 'userdir-ldap', ]: ensure => installed, tag => extra_repo, @@ -240,7 +244,7 @@ class debian_org { } mailalias { 'samhain-reports': ensure => present, - recipient => $debianadmin, + recipient => $samhain_recipients, require => Package['debian.org'] } @@ -250,6 +254,10 @@ class debian_org { owner => root, group => root, } + file { '/usr/local/bin/dsa-is-shutdown-scheduled': + source => 'puppet:///modules/debian_org/dsa-is-shutdown-scheduled', + mode => '0555', + } exec { 'dpkg-reconfigure tzdata -pcritical -fnoninteractive': path => '/usr/bin:/usr/sbin:/bin:/sbin', @@ -301,4 +309,10 @@ class debian_org { file { '/root/.vimrc': source => 'puppet:///modules/debian_org/root-dotfiles/vimrc', } + + if versioncmp($::lsbmajdistrelease, '9') >= 0 { # older puppets do facts as strings. + if $::processorcount > 1 { + package { 'irqbalance': ensure => installed } + } + } }