Issue #86 has been updated by Peter Meier.

eh, what's the difference between: 

> file{"/some/very/deep/path": ensure => directory, owner => 'root', 
> create_parents => true }

and

> file{"/some/very/deep/path": ensure => directory, owner => 'foo', 
> create_parents => true }
> 
> then the ownership of /some/very/deep/path would be changed, but the parent 
> dirs would not be affected

as I don't see the difference (except at one point root is the owner and @ the 
other foo) I assume you forgot to remove the create_parents?

Still, what about:
<pre>
file{"/var/lib/cache/foo/bar": ensure => directory, mode => 0700, 
create_parents => true }
</pre>

as far as I understood your proposal this would set permission even on 
/var/lib/cache and upwards, which definately wouldn't be what you'd like to do. 
So something like a stop point: /var/lib/cache/foo is imho definately 
necessary. So something like fragfutter's solution still seems to be necessary 
or you go with the current solution.
----------------------------------------
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
Complexity: Medium
Patch: None
Affected version: 0.24.7
Keywords: feature


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