]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/grub/manifests/init.pp
fccdc45cf701723df99143b5d9dbd569748f028b
[dsa-puppet.git] / modules / grub / manifests / init.pp
1 class grub {
2         if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
3                 file { '/etc/default/grub':
4                         source  => 'puppet:///modules/grub/etc-default-grub',
5                         notify  => Exex['update-grub']
6                 }
7
8                 exec { 'update-grub':
9                         refreshonly => true,
10                         path        => '/usr/bin:/usr/sbin:/bin:/sbin',
11                 }
12         }
13 }