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
|
# File 'manifests/init.pp', line 30
class virtualbox (
String $version = '6.0',
String $package_ensure = 'present',
String $package_name = $virtualbox::params::package_name,
Boolean $manage_repo = $virtualbox::params::manage_repo,
Boolean $manage_ext_repo = true,
Boolean $manage_package = true,
Boolean $manage_kernel = true,
Array $vboxdrv_dependencies = $virtualbox::params::vboxdrv_dependencies,
Optional[String] $repo_proxy = undef,
) inherits virtualbox::params {
if versioncmp($version, '5.0') == -1 {
$vboxdrv_command = '/etc/init.d/vboxdrv'
} else {
$vboxdrv_command = '/usr/lib/virtualbox/vboxdrv.sh'
}
class { 'virtualbox::install': } -> Class['virtualbox']
if $manage_kernel {
Class['virtualbox::install'] -> class { 'virtualbox::kernel': }
if $facts['os']['family'] == 'RedHat' {
if $manage_ext_repo {
include epel
Class['epel'] -> Class['virtualbox::kernel']
}
}
}
}
|