Ask Your Question

mount gluster fs

asked 2014-02-14 09:54:50 -0500

rakkaus gravatar image

Hi guys! I'm trying to mount glusterfs using puppet and it works okay! with this code:

mount { "/home/$_user/cl-data/data/gluster/":
    device  => $gluster_volume,
    fstype  => "glusterfs",
    ensure  => "mounted",
    options => "defaults",
    atboot  => "true",
    require => [Class["configs"], Class["gluster_client::install"],]

but! after mounting gluster folder become owned by root. My question is how to avoid this? how to mount as user?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-16 15:12:50 -0500

You should use the gluster::mount type from the Puppet-Gluster module which should do everything you need. It is available here:

You can also look at the code and see exactly how it mounts. Note that upcoming versions of this module will use the glusterfs command to mount, instead of /etc/fstab, since it is more powerful and supports features not available with standard mounts.

I noticed that you seem to be using a custom gluster_client class. It's probably a good idea to use the "official" puppet-gluster module that I mentioned above. For more ... (more)

edit flag offensive delete link more


Thanks I saw it but I don't want to add whole plugin. All what I need is to mount gluster volume.

rakkaus gravatar imagerakkaus ( 2014-02-17 01:51:30 -0500 )edit

You can use just the parts that you want. You don't have to use the whole module.

jamesjustjames gravatar imagejamesjustjames ( 2014-02-18 10:23:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-02-14 09:54:50 -0500

Seen: 217 times

Last updated: Feb 16 '14