Issue #4815 has been updated by Chuck Schweizer.

This define still does not solve the problem.

The issues is there there is a mount point the File system is mounted on THEN 
there is the actual mount

eg.

There is the mount point that needs to be created:
* /opt/my_mount      owner=root group= root  mode=755

Then you have to mount the LV
* MOUNT LV on /opt/my_mount

Then you have to set the permissions on the mounted filesystem
* /opt/my_mount     owner=captain  group=mountgrp mode=750
----------------------------------------
Feature #4815: Allow Mount to create a mount point and set the under lying 
permission
https://projects.puppetlabs.com/issues/4815#change-56217

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.

Reply via email to