Issue #2545 has been updated by Alan Harder.
Alan Harder wrote: > It would be neat if the file resource here could autorequire an exec that has > "create=>parent-dir" attribute, instead of only looking for File[parent-dir]. > Of course, if I can do mkdir -p in a file resource I won't need this, but > thought I'd mention this idea.. probably anywhere it autorequires File[x] it > could also look for Exec with creates=>x. or, as "whack" just mentioned in IRC: if "creates=>x" implicitly created a file resource under the hood, autorequires could work as they do now. ---------------------------------------- Feature #2545: Ability to do "mkdir -p" with a file resource http://projects.reductivelabs.com/issues/2545 Author: Alan Harder Status: Unreviewed Priority: Normal Assigned to: Category: file Target version: Complexity: Unknown Affected version: 0.24.8 Keywords: It would be nice to have "mkdir -p" ability w/o an exec resource. I was thinking this might be a good syntax: <pre> file { '/my/path/here': ensure => directory, recurse => true } </pre> (if this doesn't conflict with any other use/meaning of the recurse attribute) Side note: I'm currently using: <pre> exec { 'create_my_dir': command => 'mkdir -p /my/path/here', creates => '/my/path/here' } file { '/my/path/here/some.file': source => ... } </pre> It would be neat if the file resource here could autorequire an exec that has "create=>parent-dir" attribute, instead of only looking for File[parent-dir]. Of course, if I can do mkdir -p in a file resource I won't need this, but thought I'd mention this idea.. probably anywhere it autorequires File[x] it could also look for Exec with creates=>x. -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
