Issue #5012 has been updated by Markus Roberts.

Status changed from Unreviewed to Needs more information

Two questions: 1) is this only intended to work if the mount is a direct parent 
of the file (that appears to be the case) and 2) is the behavior actually new, 
or is the first affected version some thing far earlier?  If it's not new, this 
is really a feature request (albeit a reasonable one).

----------------------------------------
Bug #5012: File should autorequire Mounts
https://projects.puppetlabs.com/issues/5012

Author: Stefan Schulte
Status: Needs more information
Priority: Normal
Assignee: 
Category: file
Target version: 
Affected version: 2.6.1
Keywords: 
Branch: 


I want to control mounpoints and files with Puppet. This is a common example:

    file  {'/foo': ensure => directory}
    mount {'/foo': ensure => mounted }
    file  {'/foo/bar': ensure => file}

Unfortunately `File[/foo/bar]` just autorequires `File[/foo]` so it can happen 
that puppet creates `/foo` and `/foo/bar` and then mount `/foo`, so `/foo/bar` 
disappears and consumes diskspace. Because I cannot think of an use case where 
a directory or file does NOT depend on the parent mount, I propose to add an 
autorequire statement in the file-type.


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