Issue #5113 has been updated by Stefan Schulte.

Status changed from Accepted to Closed

Specifying the source actually is a noop as the yum provider does not make use 
of the source parameter. The source parameter is e.g. evaluated when you use 
the rpm provider:

<pre>
package { 'foo':
  ensure   => installed,
  source   => 'http://example.com/foo.rpm',
  provider => rpm,
}
</pre>

The yumprovider ignores `source` so specifying `require` is enough and there is 
no duplication. But the following two issues might interest you if I get the 
intention of the bug report right: #901 and #2247
----------------------------------------
Feature #5113: Package provider yum should imply 'require' for yumrepo
https://projects.puppetlabs.com/issues/5113#change-70361

Author: Hunter Haugen
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


If I define a yumrepo resource named 'myrepo' then have a package that has 
source => Yumrepo['myrepo'], I still have to use require => Yumrepo['myrepo'] 
to ensure the repo is instantiated first. This seems like non-desirable 
behavior and instead source => Yumrepo['myrepo'] should imply require.


-- 
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.

Reply via email to