Skip to content
Snippets Groups Projects
Commit 7f62cc29 authored by Russ Allbery's avatar Russ Allbery
Browse files

Rework the open-vm installation rules

Avoid too many levels of redirection through variables and
variables with studly-caps in favor of a single variable.
Default to the jessie and sid package, since that's what we'll
use going forward.  Avoid using regexes; this isn't really a
regex match, and we'll soon be able to delete the lenny case
anyway.
parent cbca1014
No related branches found
No related tags found
No related merge requests found
......@@ -11,13 +11,16 @@ class base::vmguest {
case $::operatingsystem {
'debian', 'ubuntu': {
$VMmodules = $::lsbdistcodename ? {
/(lenny|squeeze)/ => "open-vm-modules-${::kernelrelease}",
/(jessie|sid)/ => 'open-vm-tools-dkms',
default => 'open-vm-dkms',
$open_vm_module = $::lsbdistcodename ? {
'lenny' => "open-vm-modules-${::kernelrelease}",
'squeeze' => "open-vm-modules-${::kernelrelease}",
'wheezy' => 'open-vm-dkms',
default => 'open-vm-tools-dkms',
}
package {
'open-vm-tools': ensure => installed;
$open_vm_module: ensure => installed;
}
$VMToolsPackages = [ 'open-vm-tools', $VMmodules ]
package { $VMToolsPackages: ensure => 'installed' }
# udev rules for SCSI I/O timeout. Needs config on older Debian since
# open-vm-tools doesn't modify udev like VMwareTools on RHEL.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment