Puppet Class: virtualbox::kernel
- Defined in:
- manifests/kernel.pp
Overview
Class: virtualbox::kernel
This is a private class meant to be called from virtualbox This class compiles and installs the VirtualBox kernel modules and dependencies.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'manifests/kernel.pp', line 7
class virtualbox::kernel (
Boolean $manage_repo = $virtualbox::manage_repo,
Array $vboxdrv_dependencies = $virtualbox::vboxdrv_dependencies,
String $vboxdrv_command = $virtualbox::vboxdrv_command
) {
ensure_packages($vboxdrv_dependencies)
exec { 'vboxdrv':
command => "${vboxdrv_command} setup",
unless => '/sbin/lsmod | grep vboxdrv',
environment => 'KERN_DIR=/usr/src/kernels/`uname -r`',
require => Package[$vboxdrv_dependencies],
}
}
|