On Wed, 16 Jun 2010, Roy Nielsen wrote:
> I've got a file resource that makes sure a specific directory tree
> is created..
> 
> $dirs = ["/var", "/var/lanl", "/var/lanl/puppet"]
> 
> @file { $dirs :
>       ensure => directory,
>       owner => "root",
>       group => "wheel",
>       mode => 755,
>       links => follow,
> }

Puppet automatically makes each file depend on its parent directory, so 
your exmple should work.

> I would think that setting up a $packages array in the right order
> and doing something like:
> 
> package{ $packages :
>       ensure => present,
> }

No, that won't install the packages in any specific order.  There are no
explicit or implicit dependencies between apckages in your example, but
in my case I want each package to explicitly depend on its predecessor
in the array.

--apb (Alan Barrett)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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