2 if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
5 $grub_do_ifnames = true
6 } elsif $::hostname in [ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,casulana,mirror-anu,sallinen,storace,mirror-skroutz] {
10 } elsif $::hostname in [mirror-accumu] {
12 $grub_do_serial = true
20 file { '/etc/default/grub':
22 source => 'puppet:///modules/grub/etc-default-grub',
23 notify => Exec['update-grub']
26 file { '/etc/default/grub.d':
30 file { '/etc/default/grub.d/puppet-grub-serial.cfg':
31 ensure => $grub_do_serial ? { true => 'present', default => 'absent' },
32 content => template('grub/puppet-grub-serial.cfg.erb'),
33 notify => Exec['update-grub']
36 file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
37 ensure => $grub_do_ifnames ? { true => 'present', default => 'absent' },
38 content => template('grub/puppet-net-ifnames.cfg.erb'),
39 notify => Exec['update-grub']
42 file { '/etc/default/grub.d/puppet-kernel-nopat.cfg':
43 ensure => $grub_do_nopat ? { true => 'present', default => 'absent' },
44 content => template('grub/puppet-kernel-nopat.cfg.erb'),
45 notify => Exec['update-grub']
51 path => '/usr/bin:/usr/sbin:/bin:/sbin',