Skip to content

Commit

Permalink
Update repo.pp to fix voxpupuli#49 and voxpupuli#40
Browse files Browse the repository at this point in the history
VMware have changed the layout of packages.vmware.com necessitating a change to this module to use the new location for the latest package releases. This PR could however break users who are specifying releases before version 10, so you might want to build a more complicated change which checks the specified version if there is one and selects either esx/$version or releases/$version...
  • Loading branch information
divad authored Jul 19, 2016
1 parent 8952cd5 commit 51e21f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# [*tools_version*]
# The version of VMware Tools to install. Possible values can be found here:
# http://packages.vmware.com/tools/esx/index.html
# http://packages.vmware.com/tools/releases/index.html
# Default: latest
#
# [*reposerver*]
Expand Down Expand Up @@ -121,7 +121,7 @@
case $::operatingsystem {
'RedHat', 'CentOS', 'Scientific', 'OracleLinux', 'OEL': {
if ( $repopath == $vmwaretools::params::repopath ) or ( $just_prepend_repopath == true ) {
$baseurl_url = "${reposerver}${repopath}/esx/${tools_version}/${vmwaretools::params::baseurl_string}${vmwaretools::params::majdistrelease}/${repobasearch}/"
$baseurl_url = "${reposerver}${repopath}/releases/${tools_version}/${vmwaretools::params::baseurl_string}${vmwaretools::params::majdistrelease}/${repobasearch}/"
} else {
$baseurl_url = "${reposerver}${repopath}/"
}
Expand Down Expand Up @@ -161,7 +161,7 @@
}
'SLES', 'SLED': {
if ( $repopath == $vmwaretools::params::repopath ) or ( $just_prepend_repopath == true ) {
$baseurl_url = "${reposerver}${repopath}/esx/${tools_version}/${vmwaretools::params::baseurl_string}${vmwaretools::params::distrelease}/${repobasearch}/"
$baseurl_url = "${reposerver}${repopath}/releases/${tools_version}/${vmwaretools::params::baseurl_string}${vmwaretools::params::distrelease}/${repobasearch}/"
} else {
$baseurl_url = "${reposerver}${repopath}/"
}
Expand Down Expand Up @@ -202,7 +202,7 @@
}
'Ubuntu': {
if ( $repopath == $vmwaretools::params::repopath ) or ( $just_prepend_repopath == true ) {
$baseurl_url = "${reposerver}${repopath}/esx/${tools_version}/${vmwaretools::params::baseurl_string}"
$baseurl_url = "${reposerver}${repopath}/releases/${tools_version}/${vmwaretools::params::baseurl_string}"
} else {
$baseurl_url = "${reposerver}${repopath}/"
}
Expand Down

0 comments on commit 51e21f0

Please sign in to comment.