[Puppet Users] Re: Making dependencies work with variable resource names

2011-02-17 Thread jcbollinger
On Feb 16, 11:50 am, Matthew Pounsett wrote: > On 2011/02/16, at 03:44, Felix Frank wrote: [...] > I tried that as well (noted in the original post).  That's what generated the > error that I included. > > Feb 11 17:18:40 puppet-bsd2 puppet-agent[68963]: Could not run Puppet > configuration cl

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 12:53, Matthew Pounsett wrote: > Actually, yes they are documented to do that. From the documentation for > 'require'[1]: Hrm.. I meant to include the URL there: I'll also note that I'm not too surprised you

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 10:56, Felix Frank wrote: >> Adding an appropriate requires => to Devices::device_node >> instantiations, as suggested, should do the trick. Alternatively, the >> requires => could be put on one of the resources inside the defined >> type (in this case, the only candidate is th

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 09:20, jcbollinger wrote: > In general, if Puppet attempts to apply resources in a sequence that > doesn't work, then it means that there are resource relationships that > are not implicit and have not been declared. That's exactly the case > in the OP's manifest: there is noth

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Felix Frank
> Adding an appropriate requires => to Devices::device_node > instantiations, as suggested, should do the trick. Alternatively, the > requires => could be put on one of the resources inside the defined > type (in this case, the only candidate is the Exec). Personally, I > prefer the latter whenev

[Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread jcbollinger
On Feb 16, 2:44 am, Felix Frank wrote: > here's what I'd do: > > > include devices > > class service { > >     file { > >         "/opt": > >             ensure => directory, > >             owner => root, > >             group => wheel, > >             mode => 755; > >         "/opt/home": > >