edestecd / puppet-software

Puppet Module to install various Desktop Software
GNU General Public License v3.0
8 stars 7 forks source link

Add VMware Workstation Player to virtualization #12

Open bittner opened 6 years ago

bittner commented 6 years ago

VMware Workstation Player is a desktop virtualization application that is available for free for personal use. It is available for download from the VMware website. (:copyright: marketing department, VMware :smirk:)

Unfortunately, this product is not available as a Debian or RPM package. The following approach allows installing the Player using Puppet:

$vmware_version = '14.0.0-6661328'
$vmware_package = "VMware-Player-${vmware_version}.x86_64.bundle"
$vmware_baseurl = 'https://download3.vmware.com/software/player/file'
$vmware_installer = "/tmp/${vmware_package}"
$vmware_install_cmd = "${vmware_installer} --console --eulas-agreed --required"
$vmware_uninstall_cmd = "${vmware_installer} --uninstall-product=vmware-player --required"

file { $vmware_installer:
  source => "${vmware_baseurl}/${vmware_package}",
  owner  => 'root',
  group  => 'root',
  mode   => '0755',
}
-> exec { $vmware_install_cmd:
  path    => ['/usr/sbin', '/usr/bin', '/sbin', '/bin'],
  # NOTE: This will make it difficult to upgrade to a newer version
  # (VMware-Player will need to be uninstalled prior to upgrade)
  creates => '/usr/bin/vmplayer',
}

Should I add this to the virtualization section with a PR?

It would require some kind of cleanup to ensure uninstalling and upgrading is possible, and to avoid that the package is downloaded and installed in continuation.

bittner commented 6 years ago

@edestecd Any comment on this?