Install iucode-tool on physical machines with Intel CPUs
authorJulien Cristau <jcristau@debian.org>
Fri, 6 Sep 2019 16:52:54 +0000 (18:52 +0200)
committerJulien Cristau <jcristau@debian.org>
Fri, 6 Sep 2019 16:52:54 +0000 (18:52 +0200)
modules/hardware/manifests/init.pp
modules/hardware/manifests/intel.pp [new file with mode: 0644]

index acb6c14..5619032 100644 (file)
@@ -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 (file)
index 0000000..3fb300c
--- /dev/null
@@ -0,0 +1,7 @@
+class hardware::intel {
+       if $::virtual == 'physical' and $::processor0 =~ /^Intel/ {
+               package { 'iucode-tool':
+                       ensure => installed,
+               }
+       }
+}