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. Can it be uses the same way across the modules? Like, specifying "file{"/foo": ensure => directory}" in module-A and "file{"/foo/bar": content => "hello world"}" in module-B? Thanks again, in advance. cheers!! On Sep 7, 11:03 am, "R.I.Pienaar" <r...@devco.net> wrote: > ----- Original Message ----- > > On Sep 6, 8:54 pm, "R.I.Pienaar" <r...@devco.net> 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 resources: > > file{"/foo": ensure => directory} > file{"/foo/bar": content => "hello world"} > > Puppet knows that it would be dumb to create /foo/bar before /foo > it also knows it would be tedious to add require statements all the > time. > > So it does the right thing, it adds the require statement for you > and you will never have a case where it creates them in the wrong > order unless you made some mistake. > > -- > R.I.Pienaar -- 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 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.