Puppet Class: virtualbox::params

Inherited by:
virtualbox
Defined in:
manifests/params.pp

Summary

It sets variables according to platform

Overview

Sets variables according to platform



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
# File 'manifests/params.pp', line 7

class virtualbox::params {

  case $::osfamily {
    'Debian': {
      $package_name = 'virtualbox'
      $manage_repo = true
      $vboxdrv_dependencies = [
        'dkms',
        "linux-headers-${facts['kernelrelease']}",
        'build-essential',
      ]

    }
    'RedHat': {
      $manage_repo = true
      $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.')
      $manage_repo = true
      $package_name = 'VirtualBox'
      $vboxdrv_dependencies = [
        'gcc',
        'make',
        'patch',
        'kernel-source',
        'binutils',
        'glibc-devel',
      ]
    }
    default: {
      fail("${facts['operatingsystem']} not supported")
    }
  }
}