Issue #8011 has been updated by Dominic Cleal.
I think somehow we've got muddled, because as far as I can see, both the Puppet
and the Ruby DSL provide arrays when you provide an array of multiple values
(`source => [ 'foo', 'bar' ]`) and they both provide a string when you quote a
single value. Above when I tested the Ruby DSL, I should have tested the
Puppet DSL at the same time!
I can't see under what circumstances we thought that multiple URLs would be
passed in as a single string. It looks like we assumed this somehow because I
copied similar code from the Augeas provider. I think this only existed in the
Augeas provider (originally, commit `cacafeb4` line 127) as the data could be
multi-line rather than Puppet providing an array as a newline-delimited string.
class packages {
package { "foo":
ensure => present,
source => [ "foo", "bar" ],
provider => rpm,
}
}
node default {
include packages
}
If we have been looking at a non-issue, then the code should indeed handle both
cases for single/multiple values.
----------------------------------------
Feature #8011: Support temp repo URL in pkgutil provider
https://projects.puppetlabs.com/issues/8011
Author: Dominic Cleal
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Jacob Helwig
Category: package
Target version: Telly
Affected Puppet version:
Keywords: pkgutil solaris
Branch: https://github.com/domcleal/puppet/tree/tickets/master/8011b
The pkgutil provider should support using the "source" attribute of the package
type as a temporary repo URL, then supply it to pkgutil with the -t option.
Other providers such as gem, pip, openbsd, freebsd and ports support this usage
already.
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.