I hope you have more moments of despair because that's nifty and I'll use it.
You could possibly use ruby's dirname and basename
(http://ruby-doc.org/core-1.8.7/File.html) inside an inline template to do the
directory/file split for you in a single resource. The parameters for
permissions and o
Hello,
Like many others, I once again had to deal with creation of deep directory
trees with puppet. I did the usual:
file { [ "/a", "/a/b/", "/a/b/c"...]:
ensure => directory
}
And again got sick of it. I still didn't find a good answer for it on the
web so here is what I came up with in a