Re: [Puppet Users] Re: The require function

2011-09-08 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> You've seen this with your own resources where the parent is a directory and >> the child is a file? >> Please bug report, as it's been a very long time since that autorequire was >> put in (0.24.x ? 0.25.x?), and I haven't seen a reported bug since

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Stefan Schulte
On Wed, Sep 07, 2011 at 02:25:21PM -0700, Douglas Garstang wrote: > On Wed, Sep 7, 2011 at 3:03 AM, R.I.Pienaar wrote: > > > > > > - Original Message - > >> On Sep 6, 8:54 pm, "R.I.Pienaar" wrote: > >> > - Original Message - > >> > > >> > files auto require their parents, it's not

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Nigel Kersten
On Wed, Sep 7, 2011 at 4:07 PM, Douglas Garstang wrote: > On Wed, Sep 7, 2011 at 3:37 PM, Adam Gibbins wrote: > > > > On 7 September 2011 23:22, Douglas Garstang > wrote: > >> > >> We'l see. To be honest, motivation is rather low right now because I > >> was just kicked off the mcollective maili

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 3:37 PM, Adam Gibbins wrote: > > On 7 September 2011 23:22, Douglas Garstang wrote: >> >> We'l see. To be honest, motivation is rather low right now because I >> was just kicked off the mcollective mailing list by Mr Pienaar for >> asking a question not in a manner to his l

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Adam Gibbins
On 7 September 2011 23:22, Douglas Garstang wrote: > We'l see. To be honest, motivation is rather low right now because I > was just kicked off the mcollective mailing list by Mr Pienaar for > asking a question not in a manner to his liking. > > I'll be honest, hoping you get kicked off this list

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 3:12 PM, Nigel Kersten wrote: > > > On Wed, Sep 7, 2011 at 2:35 PM, Douglas Garstang > wrote: >> >> On Wed, Sep 7, 2011 at 2:27 PM, Nigel Kersten >> wrote: >> > On Wed, Sep 7, 2011 at 2:25 PM, Douglas Garstang >> > >> > wrote: >> >> >> >> Actually, that's not true. I have

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Nigel Kersten
On Wed, Sep 7, 2011 at 2:35 PM, Douglas Garstang wrote: > On Wed, Sep 7, 2011 at 2:27 PM, Nigel Kersten > wrote: > > On Wed, Sep 7, 2011 at 2:25 PM, Douglas Garstang < > doug.garst...@gmail.com> > > wrote: > >> > >> Actually, that's not true. I have seen numerous situations where > >> puppet trie

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 2:27 PM, Nigel Kersten wrote: > On Wed, Sep 7, 2011 at 2:25 PM, Douglas Garstang > wrote: >> >> Actually, that's not true. I have seen numerous situations where >> puppet tries to create /foo/bar before /foo, and then complains that >> /foo does not exist. And, please don't

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Nigel Kersten
On Wed, Sep 7, 2011 at 2:25 PM, Douglas Garstang wrote: > > Actually, that's not true. I have seen numerous situations where > puppet tries to create /foo/bar before /foo, and then complains that > /foo does not exist. And, please don't get all pissy at me for having > a different view of this tha

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 3:03 AM, R.I.Pienaar wrote: > > > - Original Message - >> On Sep 6, 8:54 pm, "R.I.Pienaar" wrote: >> > - Original Message - >> > >> > files auto require their parents, it's not even needed to do >> > the require => or require() >> > >> > >> Could you please

Re: [Puppet Users] Re: The require function

2011-09-07 Thread R.I.Pienaar
- Original Message - > Thanks for the explanation. It turns out that I already use my stuff > the very same way, only without understanding the significance. > > Two related question though: > a. Does order matter? Like: > > file{"/foo/bar": content => "hello world"} >

[Puppet Users] Re: The require function

2011-09-07 Thread Sans
Thanks for the explanation. It turns out that I already use my stuff the very same way, only without understanding the significance. Two related question though: a. Does order matter? Like: file{"/foo/bar": content => "hello world"} file{"/foo": ensure => directory} b. Ca

Re: [Puppet Users] Re: The require function

2011-09-07 Thread R.I.Pienaar
- Original Message - > On Sep 6, 8:54 pm, "R.I.Pienaar" wrote: > > - Original Message - > > > > files auto require their parents, it's not even needed to do > > the require => or require() > > > > > Could you please explain what exactly does it mean? Cheers!! Given 2 file resour

[Puppet Users] Re: The require function

2011-09-07 Thread Sans
On Sep 6, 8:54 pm, "R.I.Pienaar" wrote: > - Original Message - > > files auto require their parents, it's not even needed to do > the require => or require() > > Could you please explain what exactly does it mean? Cheers!! -- You received this message because you are subscribed to the Go

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Well this is all awfully confusing. The documentation pretty clearly > says that using the require function automatically adds that class as > a dependancy. If so, why would I need to explicitly add require => to > resources? If I had to do that, I'd

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Douglas Garstang
On Tue, Sep 6, 2011 at 1:19 PM, R.I.Pienaar wrote: > > > - Original Message - >> >> >> That's a feature in newish versions, right? > > no, it's been there for ages and ages. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To pos

Re: [Puppet Users] Re: The require function

2011-09-06 Thread R.I.Pienaar
- Original Message - > > > That's a feature in newish versions, right? no, it's been there for ages and ages. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To uns

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Scott Smith
That's a feature in newish versions, right? On Sep 6, 2011 12:55 PM, "R.I.Pienaar" wrote: > > > - Original Message - >> > class platform::common { >> > file { >> > '/etc/somedir': >> > ensure => directory; >> > } >> > >> > class webapp::common { >> > require "platform::common" >> > file {

Re: [Puppet Users] Re: The require function

2011-09-06 Thread R.I.Pienaar
- Original Message - > > class platform::common { > >file { > >'/etc/somedir': > >ensure => directory; > > } > > > > class webapp::common { > >require "platform::common" > >file { > >"/etc/somedir/configfile": > ># stuff here. > >}

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Craig White
On Sep 6, 2011, at 11:58 AM, Douglas Garstang wrote: > On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang > wrote: >> The puppet documentation at >> http://docs.puppetlabs.com/references/stable/function.html says for >> the require function, that: >> >> "Evaluate one or more classes, adding the

[Puppet Users] Re: The require function

2011-09-06 Thread Douglas Garstang
On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang wrote: > The puppet documentation at > http://docs.puppetlabs.com/references/stable/function.html says for > the require function, that: > > "Evaluate one or more classes, adding the required class as a dependency." > > This implies that any resour