Do not setup grub/kernel serial console on ppc64el VMs
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 3 Feb 2019 00:22:02 +0000 (01:22 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 3 Feb 2019 00:23:50 +0000 (01:23 +0100)
On ppc64el VMs, grub and the kernel automatically switch to the serial
console if there is no video card. OTOH the serial console is not called
ttyS0, so it's better to not try to setup it up manually.

modules/grub/manifests/init.pp

index 9362e4d..73b3482 100644 (file)
@@ -3,8 +3,10 @@ class grub {
 
        if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
                $grub_manage = true
-               $grub_do_kernel_serial = true
-               $grub_do_grub_serial = true
+               if ($::debarchitecture != 'ppc64el') {
+                       $grub_do_kernel_serial = true
+                       $grub_do_grub_serial = true
+               }
        } elsif $::hostname in [ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,casulana,mirror-anu,sallinen,storace,mirror-accumu,bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14,grnet-node01,grnet-node02,csail-node01,csail-node02,byrd,mirror-isc,mirror-umn,lobos,villa,klecker,clementi,czerny,lw01,lw02,lw03,lw04,lw07,lw08,lw09,lw10] {
                $grub_manage = true
                $grub_do_kernel_serial = true