[Puppet Users] Re: require => Class

2011-06-30 Thread brijesh
yes i have *.pp in my site.pp file but adding include foo1 fixed the issue. On Jul 1, 3:02 pm, brijesh wrote: > thanks > that  worked  i didn't realise i need to include it first. > > Brijesh > > On Jul 1, 1:18 pm, vagn scott wrote: > > > you also have to have a > > > include foo1 > > > somewhe

[Puppet Users] Re: require => Class

2011-06-30 Thread brijesh
thanks that worked i didn't realise i need to include it first. Brijesh On Jul 1, 1:18 pm, vagn scott wrote: > you also have to have a > > include foo1 > > somewhere. > > Note that your require is a dependency, > not an instantiation.  require just says > that foo1 has to be installed first, >

[Puppet Users] Re: Require Class?

2009-10-26 Thread Trevor Hemsley
seph wrote: > I've been assuming it's a typo, and means that the apache *service* > depends on the squid class. I'd love to know how to make a class depend > on another class. > I use this all the time in 0.24.8. You just put require => Class["whatever"] on your resource in the dependent

[Puppet Users] Re: Require Class?

2009-10-26 Thread R.I.Pienaar
hello, - "seph" wrote: > I've been assuming it's a typo, and means that the apache *service* > depends on the squid class. I'd love to know how to make a class > depend > on another class. On 0.25.1 and later you can do 'require classname' instead of 'include classname' in the cases whe

[Puppet Users] Re: Require Class?

2009-10-26 Thread seph
I've been assuming it's a typo, and means that the apache *service* depends on the squid class. I'd love to know how to make a class depend on another class. seph Douglas Garstang writes: > Can someone tell me what a require => Class actually does? The > documentation on this really isn't clea

[Puppet Users] Re: Require Class?

2009-10-25 Thread Julian Simpson
Darn iPhone. Requiring a class will make puppet consider an entire class of resources a dependency. So in the example you quoted, the squid class would be executed before the apache service. It allows abstraction over requiring individual resources, that's all. Sent from my iPhone On 25 Oct

[Puppet Users] Re: Require Class?

2009-10-25 Thread Julian Simpson
Require => Class will me Sent from my iPhone On 25 Oct 2009, at 06:59, Douglas Garstang wrote: > > Can someone tell me what a require => Class actually does? The > documentation on this really isn't clear. > > The language tutorial at > http://reductivelabs.com/trac/puppet/wiki/LanguageTutor

[Puppet Users] Re: require class between modules

2009-05-18 Thread Evan Hisey
On Mon, May 18, 2009 at 9:30 AM, paul matthews wrote: > Hi Evan, > > Within the class that has the dependency, I would imagine it is as case of > adding:- > > require => Class["classname"], > > Paul > > 2009/5/13 Evan Hisey >> >> Okay, I know this has been addressed before but I can not find it.

[Puppet Users] Re: require class between modules

2009-05-18 Thread paul matthews
Hi Evan, Within the class that has the dependency, I would imagine it is as case of adding:- require => Class["classname"], Paul 2009/5/13 Evan Hisey > > Okay, I know this has been addressed before but I can not find it. I > have module setup to handle all my Yum repos. This module works well