Changed CentOS vmware::guest to use VMware YUM repository.
This commit is contained in:
parent
f7905be674
commit
8c52163d52
1 changed files with 13 additions and 13 deletions
|
@ -19,21 +19,21 @@ class vmware::guest {
|
|||
#
|
||||
class vmware::guest::centos {
|
||||
|
||||
include yum::common
|
||||
yum::repo { "vmware-tools":
|
||||
descr => "VMware Tools Repository",
|
||||
baseurl => "http://packages.vmware.com/tools/esx/5.0/rhel${yum::common::osver}/${architecture}",
|
||||
}
|
||||
|
||||
package { "VMwareTools":
|
||||
ensure => installed,
|
||||
ensure => absent,
|
||||
}
|
||||
exec { "vmware-config-tools.pl":
|
||||
command => "/bin/sh -c 'unset DISPLAY REMOTEHOST SSH_CONNECTION ; perl /usr/bin/vmware-config-tools.pl -d ; test -f /lib/modules/${kernelrelease}/misc/vmci.ko'",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
environment => [ "PAGER=/bin/cat", ],
|
||||
creates => "/lib/modules/$kernelrelease/misc/vmci.ko",
|
||||
require => Package["VMwareTools"],
|
||||
}
|
||||
service { "vmware-tools":
|
||||
enable => true,
|
||||
ensure => running,
|
||||
subscribe => Exec["vmware-config-tools.pl"],
|
||||
require => Exec["vmware-config-tools.pl"],
|
||||
|
||||
package { [ "vmware-tools-esx-nox",
|
||||
"vmware-tools-esx-kmods", ]:
|
||||
ensure => installed,
|
||||
require => [ Package["VMwareTools"],
|
||||
Yum::Repo["vmware-tools"], ],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue