class grub {
if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
$grub_manage = true
- $grub_do_serial = true
+ $grub_do_kernel_serial = true
+ $grub_do_grub_serial = true
$grub_do_ifnames = true
} elsif $::hostname in [ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,casulana,mirror-anu,sallinen,storace,mirror-skroutz] {
$grub_manage = true
- $grub_do_serial = true
+ $grub_do_kernel_serial = true
+ $grub_do_grub_serial = true
$grub_do_nopat = true
} elsif $::hostname in [mirror-accumu] {
$grub_manage = true
- $grub_do_serial = true
+ $grub_do_kernel_serial = true
+ $grub_do_grub_serial = true
$grub_do_nopat = true
} else {
$grub_manage = false
}
file { '/etc/default/grub.d/puppet-grub-serial.cfg':
- ensure => $grub_do_serial ? { true => 'present', default => 'absent' },
+ ensure => $grub_do_kernel_serial ? { true => 'present', default => 'absent' },
content => template('grub/puppet-grub-serial.cfg.erb'),
notify => Exec['update-grub']
}
+ file { '/etc/default/grub.d/puppet-kernel-serial.cfg':
+ ensure => $grub_do_grub_serial ? { true => 'present', default => 'absent' },
+ content => template('grub/puppet-kernel-serial.cfg.erb'),
+ notify => Exec['update-grub']
+ }
+
file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
ensure => $grub_do_ifnames ? { true => 'present', default => 'absent' },
content => template('grub/puppet-net-ifnames.cfg.erb'),
-<%- if scope.lookupvar('::debarchitecture') == "arm64" -%>
-GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=ttyAMA0,115200n8"
-<% else -%>
-GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX console=tty0 console=ttyS0,115200n8"
-<%- end -%>
-
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"