Issue #86 has been updated by Nigel Kersten.

I've yet to see a consistent and predictable suggestion for how we accomplish 
this.

If anyone wants to take a stab at providing that, it would be immensely helpful.

The general principles I believe we should be favoring are:
* Explicit is preferable to implicit
* Consistency is important
* Avoid abusing existing parameters
* Avoid a proliferation of extra parameters.

Additionally, can we try to think outside the box a little? Is it possible that 
we could solve this by being able to instantiate resources with an array of 
hashes where missing values are undef?
<pre>
$my_dirs = [ { path => "/a" }, { path => "/a/b" }, { path => "/a/b/c", owner => 
"root", mode => 0755 } ]
file { $my_dirs: }
</pre>


----------------------------------------
Feature #86: Directory creation fails if parent directory does not exist
https://projects.puppetlabs.com/issues/86

Author: Redmine Admin
Status: Accepted
Priority: Normal
Assignee: 
Category: file
Target version: unplanned
Patch: None
Affected Puppet 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://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