Issue #4815 has been updated by eric sorenson.
eric sorenson wrote: > Triage-A-Thon: this is trivial to do with a defined type, which gives you > more flexibility anyways. Also check out > > https://github.com/puppetlabs/puppetlabs-mount-providers Added a definition example to help out: https://github.com/ahpook/puppetlabs-mount-providers/commit/31dc733331af32bb586dbd755b978b2bd074d9cf ---------------------------------------- Feature #4815: Allow Mount to create a mount point and set the under lying permission https://projects.puppetlabs.com/issues/4815 Author: Chuck Schweizer Status: Rejected Priority: Low Assignee: Category: mount Target version: 2.7.x 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.
