From e0295c6d4688140e29d783e5eb2b8df4e5785f98 Mon Sep 17 00:00:00 2001 From: Christophe Vanlancker Date: Wed, 28 Jan 2015 19:22:40 +0100 Subject: [PATCH 1/2] mount resource cannot be remounted, unsupported in gluster-fuse Signed-off-by: Christophe Vanlancker --- manifests/mount.pp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/mount.pp b/manifests/mount.pp index 649a602..146de21 100644 --- a/manifests/mount.pp +++ b/manifests/mount.pp @@ -16,11 +16,12 @@ include glusterfs::client mount { $title: - ensure => $ensure, - device => $device, - fstype => 'glusterfs', - options => $options, - require => Package['glusterfs-fuse'], + ensure => $ensure, + device => $device, + fstype => 'glusterfs', + options => $options, + remounts => false, + require => Package['glusterfs-fuse'], } } From 940c6bb3f719bdc086591ba380822618a50db4ae Mon Sep 17 00:00:00 2001 From: Christophe Vanlancker Date: Thu, 29 Jan 2015 16:35:23 +0100 Subject: [PATCH 2/2] Allow distinguishing between gluster::mount title and path to avoid double entries in fstab Signed-off-by: Christophe Vanlancker --- manifests/mount.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/mount.pp b/manifests/mount.pp index 146de21..7d79882 100644 --- a/manifests/mount.pp +++ b/manifests/mount.pp @@ -9,13 +9,14 @@ # define glusterfs::mount ( $device, + $path = $name, $options = 'defaults', $ensure = 'mounted' ) { include glusterfs::client - mount { $title: + mount { $path: ensure => $ensure, device => $device, fstype => 'glusterfs', @@ -25,4 +26,3 @@ } } -