That's a feature in newish versions, right?
On Sep 6, 2011 12:55 PM, "R.I.Pienaar" <r...@devco.net> wrote:
>
>
> ----- Original Message -----
>> > class platform::common {
>> > file {
>> > '/etc/somedir':
>> > ensure => directory;
>> > }
>> >
>> > class webapp::common {
>> > require "platform::common"
>> > file {
>> > "/etc/somedir/configfile":
>> > # stuff here.
>> > }
>> > }
>> >
>> > When puppet runs, it's trying to apply the file
>> > /etc/somedir/configfile _before_ /etc/somedir. This seems to
>> > contradict the behaviour the documentation describes.
>> ----
>> Suggest you try this...
>> class webapp::common {
>> include platform::common
>> file {
>> "/etc/somedir/configfile":
>> require => Class["platform::common"],
>> # stuff here.
>> }
>> }
>
> files auto require their parents, it's not even needed to do
> the require => or require()
>
> He's not showing actual code, log lines or errors.
>
> --
> 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.
>

-- 
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.

Reply via email to