From 1c3ee9aeff0a4f334803eaf9e2a8a03c78710ac9 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 30 Aug 2017 08:47:02 +0000 Subject: [PATCH] install irqbalance on multi-cpu systems --- modules/debian_org/manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/debian_org/manifests/init.pp b/modules/debian_org/manifests/init.pp index eb0c4255e..3861d7183 100644 --- a/modules/debian_org/manifests/init.pp +++ b/modules/debian_org/manifests/init.pp @@ -313,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 } + } + } } -- 2.20.1