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] {
14 $grub_do_kernel_serial = true
15 $grub_do_grub_serial = true
16 $grub_do_nopat = false
23 file { '/etc/default/grub':
25 source => 'puppet:///modules/grub/etc-default-grub',
26 notify => Exec['update-grub']
29 file { '/etc/default/grub.d':
33 file { '/etc/default/grub.d/puppet-grub-serial.cfg':
34 ensure => $grub_do_kernel_serial ? { true => 'present', default => 'absent' },
35 content => template('grub/puppet-grub-serial.cfg.erb'),
36 notify => Exec['update-grub']
39 file { '/etc/default/grub.d/puppet-kernel-serial.cfg':
40 ensure => $grub_do_grub_serial ? { true => 'present', default => 'absent' },
41 content => template('grub/puppet-kernel-serial.cfg.erb'),
42 notify => Exec['update-grub']
45 file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
46 ensure => $grub_do_ifnames ? { true => 'present', default => 'absent' },
47 content => template('grub/puppet-net-ifnames.cfg.erb'),
48 notify => Exec['update-grub']
51 file { '/etc/default/grub.d/puppet-kernel-nopat.cfg':
52 ensure => $grub_do_nopat ? { true => 'present', default => 'absent' },
53 content => template('grub/puppet-kernel-nopat.cfg.erb'),
54 notify => Exec['update-grub']
60 path => '/usr/bin:/usr/sbin:/bin:/sbin',