Only install intel microcode on amd64
authorJulien Cristau <jcristau@debian.org>
Sat, 7 Sep 2019 07:59:17 +0000 (09:59 +0200)
committerJulien Cristau <jcristau@debian.org>
Sat, 7 Sep 2019 07:59:17 +0000 (09:59 +0200)
Some other-arch hosts don't seem to have a "processor0" fact, so bypass
that.

modules/hardware/manifests/intel.pp

index 3a2513d..0cd302d 100644 (file)
@@ -1,5 +1,5 @@
 class hardware::intel {
-       if $::virtual == 'physical' and $::processor0 =~ /^Intel/ {
+       if $::virtual == 'physical' and $::debarchitecture == 'amd64' and $::processor0 =~ /^Intel/ {
                package { 'iucode-tool':
                        ensure => installed,
                }