Issue #86 has been updated by Michael DeHaan.

Lots of reasons why we can't do this, but it would be nice to have.  I think we 
should list the limitations and side effects and still have it, but not make 
"absent" work.

Even if we just had ...

File { expand("/tmp/path/one/two",1): ensure => directory } as shorthand for 
listing the arrays of each directory without including part of the root (which 
might be a duplicate).

Or just add mkdir -p into the provider (as mentioned) and surround it will 
skulls and crossbones about how it determines permissions, following what mkdir 
-p does for the most part, and listing when it's a bad idea.   After all, even 
Haskell has some provision for side effects :)

Longer term, if we duplicate resources, and they are 100% the same, maybe 
that's not an error and they resolve to the same resource.  I don't know.

--Michael
----------------------------------------
Feature #86: Directory creation fails if parent directory does not exist
http://projects.reductivelabs.com/issues/86

Author: Redmine Admin
Status: Accepted
Priority: Normal
Assigned to: 
Category: file
Target version: unplanned
Patch: None
Affected version: 0.24.7
Keywords: feature
Branch: 


I tried 

file {"/usr/local/share/puppet/sopext/facter" : 
  ensure => directory, 
  recurse => true
}

but get erros that the parent diretories are not available.


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

Reply via email to