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] {
16 file { '/etc/default/grub':
18 source => 'puppet:///modules/grub/etc-default-grub',
19 notify => Exec['update-grub']
22 file { '/etc/default/grub.d':
26 file { '/etc/default/grub.d/puppet-grub-serial.cfg':
27 ensure => $grub_do_serial ? { true => 'present', default => 'absent' },
28 content => template('grub/puppet-grub-serial.cfg.erb'),
29 notify => Exec['update-grub']
32 file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
33 ensure => $grub_do_ifnames ? { true => 'present', default => 'absent' },
34 content => template('grub/puppet-net-ifnames.cfg.erb'),
35 notify => Exec['update-grub']
38 file { '/etc/default/grub.d/puppet-kernel-nopat.cfg':
39 ensure => $grub_do_nopat ? { true => 'present', default => 'absent' },
40 content => template('grub/puppet-kernel-nopat.cfg.erb'),
41 notify => Exec['update-grub']
47 path => '/usr/bin:/usr/sbin:/bin:/sbin',