Issue #23057 has been reported by Ryan Skoblenick.
----------------------------------------
Bug #23057: OS X package resource type doesn't allow for querystrings on source
uri
https://projects.puppetlabs.com/issues/23057
* Author: Ryan Skoblenick
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version: 3.3.1
* Keywords:
* Branch:
----------------------------------------
The package resources for OS X don't allow for source strings that do not end
with pkg or dmg. This is problematic in most cases where cloud storage like
dropbox are used. Dropbox doesn't do direct downloads without user interaction
unless a query string parameter is added to the URL (i.e. ?dl=1)
The following code:
$source = "https://www.dropbox.com/s/xxxxxxx/installer.dmg?dl=1"
package {"installer":
ensure => installed,
source => "${source}",
provider => pkgdmg,
}
Will fail with:
Error: Mac OS X PKG DMG's must specify a source string ending in .dmg or flat
.pkg file
The provider should instead be parsing off the query string, or out the file
name of the request, rather than rejecting the entire string. I would like to
point out that I can cheat the validation method above by doing:
$source =
"https://www.dropbox.com/s/m2fhkj8c3ntv2hi/VMware-Fusion-${version}-${build}-light.dmg?dl=1&.dmg"
only the last few characters are being validated.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.