[Puppet Users] Re: Puppet changes mount point directory ownership.

jcbollinger
Mon, 21 Nov 2011 15:42:54 -0000

On Nov 20, 3:59 pm, Douglas Garstang <doug.garst...@gmail.com>
wrote:
> I''ve got a directory, /u01/app that is owned by oracle.oinstall. I
> have this in my manifest:
>
>         #
>         # Mount point for the Oracle database.
>         #
>         ''/u01/app'':
>             device  => ''/dev/xvdo'',
>             atboot  => true,
>             ensure  => mounted,
>             fstype  => ''ext4'',
>             options => ''defaults'',
>             require => Exec[''oracle-app-makefs''];
>
> As part of the mount operation, puppet changes the ownership on
> /u01/app to root.root. Why? How can I stop this?


It has nothing to do with Puppet.  While the filesystem is mounted on /
u01/app, the permissions (and all other properties) on that directory
are those of the root of the mounted filesystem, not those of the
underlying mount point.  You can manage the permissions (and
everything else) of the mounted filesystem via all the normal tools.
If you dismount the filesystem then you should see the underlying
mount point''s own permissions again.

Note that it is tricky with Puppet to manage both a mount point and
the root of a filesystem mounted there, because neither Puppet nor the
system itself can distinguish the two very well.


John

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at