Puppet Class: virtualbox::params
- Inherited by:
-
virtualbox
- Defined in:
- manifests/params.pp
Overview
Class virtualbox::params
This class is meant to be called from virtualbox It sets variables according to platform
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'manifests/params.pp', line 6
class virtualbox::params {
$manage_ext_repo = true
$repo_proxy = undef
case $::osfamily {
'Debian': {
$version = '5.1'
$manage_kernel = true
$manage_package = true
$package_ensure = present
$package_name = 'virtualbox'
if versioncmp($::puppetversion, '3.0.0') == -1 {
notice "The default behavior for the manage_repo parameter has changed for ${::puppetversion} on Debian/Ubuntu systems. You must now manage Apt repos separate from the virtualbox module. See the README.md for more details." # lint:ignore:80chars
$manage_repo = false
} else {
$manage_repo = true
}
$vboxdrv_dependencies = [
'dkms',
"linux-headers-${::kernelrelease}",
'build-essential',
]
}
'RedHat': {
$version = '5.1'
$manage_kernel = true
$manage_package = true
$manage_repo = true
$package_ensure = present
$package_name = 'VirtualBox'
$vboxdrv_dependencies = [
'gcc',
'make',
'patch',
'kernel-headers',
'kernel-devel',
'dkms',
'binutils',
'glibc-headers',
'glibc-devel',
]
}
'Suse': {
warning('Careful! Support for SuSE is experimental at best.')
$version = '5.1'
$manage_kernel = true
$manage_package = true
$manage_repo = true
$package_ensure = present
$package_name = 'VirtualBox'
$vboxdrv_dependencies = [
'gcc',
'make',
'patch',
'kernel-source',
'binutils',
'glibc-devel',
]
}
default: {
fail("${::operatingsystem} not supported by ${::module_name}")
}
}
}
|