Do I have to start from '/opt', as '/opt' already exists?
Is Ruby DSL (use/how-to etc.) documented anywhere?

Cheers,
San

On Aug 18, 4:22 pm, Gary Larizza <g...@puppetlabs.com> wrote:
> ---------- Forwarded message ----------
>
> The following will do what you want:
>
> file { ['/opt', '/opt/globus', '/opt/globus/cert']:
>    ensure => directory,
> }
>
> Because of the implicit dependencies that exist between directories and
> their parents that are managed by puppet, you do not need to specify any
> ordering - puppet will set it up for you.
>
> You can write a defined resource type to do this for you if you'd like, or
> you can use the Ruby DSL to create a mkdir_p function.
>
> --
>
> Gary Larizza
> Professional Services Engineer
> Puppet Labs
>
> Join us for PuppetConf <http://bit.ly/puppetconfsig>, September 22nd and
> 23rd in Portland, OR!

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