1

Im trying to create directory tree using puppet. Ex dir => /home/any_dirname/any_dirname2/any_dirname3/

Is it possible to create above tree in puppet where dirname can be anything so im taking it as a variable. How do i split the variable and ensure each directory is created?

Kittu
  • 11
  • 1

2 Answers2

0

Sadly, this cannot work out of the box. See this old feature request. It holds links to resources that may be of help.

Felix Frank
  • 3,093
  • 1
  • 16
  • 22
0

Pretty much everybody writes his own mymodule::mkdirp{} resource :) . This is the solution. One example (not by me): echocat/nfs, the resource is called "mkdirp" I think.

Have fun writing your own ;)

flypenguin
  • 203
  • 1
  • 2
  • 12