On Nov 30, 2010, at 7:03 AM, Daniel Piddock wrote:

> Is there any way for a class to depend on another class or for the
> include statement to act more like a require?


Two things here:

If you're on 2.6.3 put your repositories class in a 'pre' stage, that way you 
eliminate putting an individual dependency on every package resource as you're 
currently doing.

Minimally in your current code change 'include repositories::debian' to 
'require("repositories::debian")' - this is a built-in function that does an 
include-plus-require and will produce the ordering you want  (Thanks to Jeff 
Mccune for pointing me at this)  
http://docs.puppetlabs.com/references/latest/function.html#require

 - Eric Sorenson - N37 17.255 W121 55.738  - http://twitter.com/ahpook  -

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to