2 if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
3 file { '/etc/default/grub':
5 source => 'puppet:///modules/grub/etc-default-grub',
6 notify => Exec['update-grub']
8 file { '/etc/default/grub.d':
11 file { '/etc/default/grub.d/puppet-grub-serial.cfg':
12 content => template('grub/puppet-grub-serial.cfg.erb'),
13 notify => Exec['update-grub']
15 file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
16 content => template('grub/puppet-net-ifnames.cfg.erb'),
17 notify => Exec['update-grub']
22 path => '/usr/bin:/usr/sbin:/bin:/sbin',