install virt-what and use facter's default virtual facts
[mirror/dsa-puppet.git] / modules / grub / manifests / init.pp
index 1f6e7e6..1ef9ec7 100644 (file)
@@ -1,5 +1,5 @@
 class grub {
-       if ($::kernel == 'Linux' and $::virt == 'kvm') {
+       if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
                file { '/etc/default/grub':
                        # restore to default
                        source => 'puppet:///modules/grub/etc-default-grub',