On Sat, Feb 12, 2011 at 10:38 PM, Ashley Gould <ago...@ucop.edu> wrote:

> somehow you have to
> parse out the path components of $dir and ensure them one by one.
> Why is it puppet does not have a nice trick for "mkdir -p"?
>
>
Because it's really not clear how it should best behave with a bunch of
cases.

This works, and is sufficient for most people:

$my_dirs = [ "/foo", "/foo/bar", "/foo/bar/spam", "/foo/bar/spam/eggs" ]

file {  $my_dirs:
  ensure => directory,
}

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