Refactored vmware::player class and added vmware::workstation class.
This commit is contained in:
parent
e32b39c4e7
commit
3926e02859
3 changed files with 74 additions and 39 deletions
24
vmware/manifests/workstation.pp
Normal file
24
vmware/manifests/workstation.pp
Normal 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"],
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue