[Pkg-puppet-devel] Bug#532398: trying to pull packages from backports may introduce 'dependency hell'

Jayen Ashar jayen at unsw.edu.au
Thu Jun 18 01:53:23 UTC 2009


Thanks Nigel!  That did the trick!

I kept searching for "package defaults", "provider defaults", and "type 
defaults".  Didn't expect it to be a "resource default".  I also thought 
it would be in the puppetd.conf, so didn't think to check the language 
tutorial.

I hope aptitude becomes the default for debian, since it's a little bit 
of a hassle to do things like this with apt-get.

Thanks,
Jayen

On 18/06/09 01:28, Nigel Kersten wrote:
> 2009/6/9 Jayen Ashar <jayen at science.unsw.edu.au>:
>> Matthew Palmer wrote:
>>> On Wed, Jun 10, 2009 at 10:44:46AM +1000, Jayen Ashar wrote:
>>> Default the provider for the Package type to be aptitude.  There's docs on
>>> that.
>> I really can't find them.  I've search for "default provider" (and variants)
>> and still can't find it.  All I can find are things saying puppet chooses a
>> default provider, based on the os.  I can't actually find the name nor
>> location of a global setting.  Could you please provide a pointer?  Thanks.
> 
> (you'd get a faster response on the puppet-users list upstream)
> 
> You really should go through the Language Tutorial. It answers this question.
> 
> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#resource-defaults
> 
> So here is how you would set an individual package:
> 
> package { "foo":
>   provider => "aptitude",
>   ...
> }
> 
> and here is how you would set it as a default for all packages (unless
> overridden in an individual package resource definition)
> 
> Package { provider => "aptitude", }

-- 
Jayen Ashar
Free Software Apostle (Linux SysAdmin)
Computing Center
School of Mathematics and Statistics
M029, Red Center
The University of New South Wales SYDNEY NSW 2052
Ph: + 61 (2) 93857016
Fax: + 61 (2) 93857192
CRICOS provider code: 00098G





More information about the Pkg-puppet-devel mailing list