On Jan 25, 2013, at 9:25 AM, Peter De Cleyn <pe...@decleyn.net> wrote:

> I ran again against a long standing bug / feature request but from a new 
> angle: creating directories with parents  
> (http://projects.puppetlabs.com/issues/86).

I was blown away when I saw that issue.  It's been open for 7 years and nobody 
can figure out how to create a directory tree?  It's kinda mind-boggling.

> I wanted to create a module, where a path could be supplied with a class 
> parameter. The path would be used in a rsync configuration, so I would like 
> to be sure the path exists. As I want the module to be general and completely 
> separate code and data, I didn't want to configure a "base path" in which all 
> rsync modules would need to live. But there is AFAIK no "mkdir -p" 
> alternative in puppet, unless I'd go with an ugly exec.
> 
> Any ideas houw to realise this? I probably could define my path in hiera as 
> an hash and as such define all parent folders, but this is not that elegant.

Short of writing a plugin, I do think the exec is your best bet.  It's ugly but 
effective.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to