Issue #10340 has been updated by James Turnbull.

Category set to file
Status changed from Unreviewed to Duplicate

Steve - this is a duplicate of an earlier bug #86 - it's worth reading the very 
long thread in there to see why we don't do this and see some suggested 
workarounds.
----------------------------------------
Feature #10340: file resource type should support creating parent tree
https://projects.puppetlabs.com/issues/10340

Author: Steve Shipway
Status: Duplicate
Priority: Normal
Assignee: 
Category: file
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


if you have this resource:

file { '/usr/local/foo/bar': content=>'xxx', ensure=>present; }

but the directory /usr/local/foo does not exist, then you get an error.  I 
would prefer that there be a flag for 'create path if required' -- IE, run a 
'mkdir -p /usr/local/foo' -- so that the resource can succeed.  It would be 
good if the flag were enabled by default, though we can always set our own 
defaults of course.



-- 
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.

Reply via email to