From: Julien Cristau Date: Fri, 6 Sep 2019 16:52:54 +0000 (+0200) Subject: Install iucode-tool on physical machines with Intel CPUs X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=commitdiff_plain;h=79edb6d514206998227a45666ff7d608d7046312 Install iucode-tool on physical machines with Intel CPUs --- diff --git a/modules/hardware/manifests/init.pp b/modules/hardware/manifests/init.pp index acb6c14b6..5619032ff 100644 --- a/modules/hardware/manifests/init.pp +++ b/modules/hardware/manifests/init.pp @@ -18,4 +18,6 @@ class hardware { include hardware::sensors include hardware::fixes + + include hardware::intel } diff --git a/modules/hardware/manifests/intel.pp b/modules/hardware/manifests/intel.pp new file mode 100644 index 000000000..3fb300c00 --- /dev/null +++ b/modules/hardware/manifests/intel.pp @@ -0,0 +1,7 @@ +class hardware::intel { + if $::virtual == 'physical' and $::processor0 =~ /^Intel/ { + package { 'iucode-tool': + ensure => installed, + } + } +}