2 if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
4 $grub_do_kernel_serial = true
5 $grub_do_grub_serial = true
6 $grub_do_ifnames = true
7 } elsif $::hostname in [ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,casulana,mirror-anu,sallinen,storace,mirror-accumu] {
9 $grub_do_kernel_serial = true
10 $grub_do_grub_serial = true
12 } elsif $::hostname in [mirror-skroutz,aagard,acker,arm-arm-01] {
14 $grub_do_kernel_serial = true
15 $grub_do_grub_serial = true
16 $grub_do_nopat = false
17 } elsif $::hostname in [acker,arm-arm-03] {
19 $grub_do_kernel_serial = true
20 $grub_do_grub_serial = false
21 $grub_do_nopat = false
28 file { '/etc/default/grub':
30 source => 'puppet:///modules/grub/etc-default-grub',
31 notify => Exec['update-grub']
34 file { '/etc/default/grub.d':
38 file { '/etc/default/grub.d/puppet-grub-serial.cfg':
39 ensure => $grub_do_kernel_serial ? { true => 'present', default => 'absent' },
40 content => template('grub/puppet-grub-serial.cfg.erb'),
41 notify => Exec['update-grub']
44 file { '/etc/default/grub.d/puppet-kernel-serial.cfg':
45 ensure => $grub_do_grub_serial ? { true => 'present', default => 'absent' },
46 content => template('grub/puppet-kernel-serial.cfg.erb'),
47 notify => Exec['update-grub']
50 file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
51 ensure => $grub_do_ifnames ? { true => 'present', default => 'absent' },
52 content => template('grub/puppet-net-ifnames.cfg.erb'),
53 notify => Exec['update-grub']
56 file { '/etc/default/grub.d/puppet-kernel-nopat.cfg':
57 ensure => $grub_do_nopat ? { true => 'present', default => 'absent' },
58 content => template('grub/puppet-kernel-nopat.cfg.erb'),
59 notify => Exec['update-grub']
65 path => '/usr/bin:/usr/sbin:/bin:/sbin',