I am trying to create recursively directories with same structure:
I have the followig dirs:
/some-1 /some-2 /some-3 /some-4
and inside each of them I'd like to create the same structure, let name it pool:
/some-1/pool /some-2/pool /some-3/pool /some-4/pool
as suggested by Albert an elegant solution could be via the "define" method of puppet.
define create_pool {
file { "/some-$title/pool":
ensure => "directory",
recurse => "true",
}
}
create_pool { [1,2,3,4]: }
Fortunately this solution is "looping" through the list: