source: Support complex pin, like key does.
authorDaniele Sluijters <daenney@users.noreply.github.com>
Mon, 6 Apr 2015 22:02:58 +0000 (18:02 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Thu, 9 Apr 2015 22:44:20 +0000 (15:44 -0700)
commit791012b2c9c442a7417744d3592cc089771b06e9
tree3d97304e60397eb92e41109322bfa5593f1dc323
parent778aae8e13a8da0517a9a7deac4fc60a09ca4b89
source: Support complex pin, like key does.

This adds support for passing in a full pin declaration as the pin
parameter on a source declaration.

It keeps the old behaviour intact, you can still simply do `pin => '10'`
and it will pin on origin with a priority of 10.

Should that not be what you want you can now pass in a full pin
declaration instead. We make no assumptions here, whatever you pass in
will be passed through to pin as-is with the exception of the values for
`ensure` and `before` which are always overridden by us to ensure
everything keeps working as designed.
manifests/source.pp
spec/defines/source_spec.rb