From 79edb6d514206998227a45666ff7d608d7046312 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 6 Sep 2019 18:52:54 +0200 Subject: [PATCH] Install iucode-tool on physical machines with Intel CPUs --- modules/hardware/manifests/init.pp | 2 ++ modules/hardware/manifests/intel.pp | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 modules/hardware/manifests/intel.pp 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, + } + } +} -- 2.20.1