Issue #3522 has been updated by Paul Lathrop. Status changed from Unreviewed to Duplicate
Dupe of #86 ---------------------------------------- Feature #3522: a "mkdir -p" option for the file type http://projects.puppetlabs.com/issues/3522 Author: Roy Nielsen Status: Duplicate Priority: Normal Assigned to: Category: file Target version: Affected version: 0.25.4 Keywords: Branch: There should be an option that will create a nested directory tree, like the "-p" flag for mkdir. I should be able to create: /my/special/tree/structure with one file resource, instead of four - I should be able to: file { "mytree" : path => "/my/special/tree/structure", ensure => directory, create => true, } instead of: file { "my" : path => "/my", ensure => directory, before => File["special"], } file { "special" : path => "/my/special", ensure => directory, before => File["tree"], } file { "tree" : path => "/my/special/tree", ensure => directory, before => File["structure"], } file { "structure" : path => "/my/special/tree/structure", ensure => directory, } Another idea, rather than creating a new "create" parameter would be to overload the recurse parameter. Regards, -Roy -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
