Issue #4815 has been updated by Daniel Pittman. Target version deleted (2.7.x)
---------------------------------------- Feature #4815: Allow Mount to create a mount point and set the under lying permission https://projects.puppetlabs.com/issues/4815#change-57118 Author: Chuck Schweizer Status: Rejected Priority: Low Assignee: Category: mount Target version: Affected Puppet version: Keywords: Branch: It would be nice to allow the Mount resource type to create the mountpoint directory and the under lying permissions. Example: mount { "/opt/open_source": atboot => yes, device => "/dev/vg01/lv_opensrc", owner => root, group => root, mode => 555, ensure => mounted, fstype => ext3, options => "defaults", dump => "0", pass => "2", } In this case the owner, group, mode are for the directory under the actual filesystem, it is only used if the filesystem is not mounted. You are then able to have the following code set the actual permissions on the mounted file system. file { "/opt/open_source" : ensure => "directory", owner => "opensrc", group => "opensrc", mode => "2755", require => Mount["/opt/open_source"]; } Under the current puppet flow you have to have the mount require the file. This leads to permissions not being set correctly on the first run of puppet. -- 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.
