X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Fmanifests%2Finit.pp;h=3861d71833e2ef40029c9572ba0388b08db01aab;hb=9e1f74ad62a130347719115d4248d0dc1170d0c2;hp=6226813697c4c7c9bf4011ec31a0613f09c8d5e0;hpb=3c6ec3bea56f171d8864c0c8eb04680477e40c7b;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian_org/manifests/init.pp b/modules/debian_org/manifests/init.pp index 622681369..3861d7183 100644 --- a/modules/debian_org/manifests/init.pp +++ b/modules/debian_org/manifests/init.pp @@ -12,6 +12,13 @@ class debian_org { $servicefiles = 'absent' } + # 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 } + } + $debianadmin = [ 'debian-archive-debian-samhain-reports@master.debian.org', 'debian-admin@ftbfs.de', @@ -251,8 +258,8 @@ class debian_org { owner => root, group => root, } - file { '/usr/local/bin/dsa-is-shutdown-in-progress': - source => 'puppet:///modules/debian_org/dsa-is-shutdown-in-progress', + file { '/usr/local/bin/dsa-is-shutdown-scheduled': + source => 'puppet:///modules/debian_org/dsa-is-shutdown-scheduled', mode => '0555', } @@ -306,4 +313,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 } + } + } }