Refactored vmware::player class and added vmware::workstation class.

This commit is contained in:
Timo Mkinen 2010-12-14 10:41:09 +02:00
parent e32b39c4e7
commit 3926e02859
3 changed files with 74 additions and 39 deletions

View file

@ -0,0 +1,24 @@
# Install VMware Workstation
#
# Requires following files on puppet server:
#
# /srv/puppet/files/common/packages/VMware-Workstation-Full.i386.bundle
# /srv/puppet/files/common/packages/VMware-Workstation-Full.x86_64.bundle
#
# === Global variables
#
# $vmware_serial:
# Serial number for VMware Workstation.
#
class vmware::workstation {
vmware::bundle { "VMware-Workstation-Full": }
exec { "vmware-set-serial":
command => "/usr/lib/vmware/bin/vmware-vmx --new-sn '${vmware_serial}'",
path => "/bin:/usr/bin:/sbin:/usr/sbin",
require => Vmware::Bundle["VMware-Workstation-Full"],
}
}