summaryrefslogtreecommitdiffstats
path: root/manifests/brick
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-03-13 11:45:26 -0400
committerJames Shubin <james@shubin.ca>2014-03-16 22:39:08 -0400
commitc7a6ef2c0267540ab2b272872648476255557dc6 (patch)
treefb8c109ded939d3092bccc91a0456f4e92e62d46 /manifests/brick
parent05576cd410bb2616ce72e3e9e24850f911cbb6dc (diff)
downloadpuppet-gluster-c7a6ef2c0267540ab2b272872648476255557dc6.tar.gz
puppet-gluster-c7a6ef2c0267540ab2b272872648476255557dc6.tar.xz
puppet-gluster-c7a6ef2c0267540ab2b272872648476255557dc6.zip
Add automatic generation of fs UUID's per brick filesystem.
This automatically generates UUID's for each physical filesystem, or alternatively, you can specify one manually with the $fsuuid argument. This will make a _big_ difference when using gluster::simple to automatically deploy a large cluster of physical machines, since you don't have to manually generate one uuid per device (which is time consuming and could be a lot to do and a lot to maintain).
Diffstat (limited to 'manifests/brick')
-rw-r--r--manifests/brick/base.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/brick/base.pp b/manifests/brick/base.pp
index 83398e2..c39cb3f 100644
--- a/manifests/brick/base.pp
+++ b/manifests/brick/base.pp
@@ -28,5 +28,14 @@ class gluster::brick::base {
force => true, # don't purge subdirs and links
require => File["${vardir}/"],
}
+
+ # don't purge the fsuuid file's generated within
+ file { "${vardir}/brick/fsuuid/":
+ ensure => directory, # make sure this is a directory
+ recurse => false, # don't recurse into directory
+ purge => false, # don't purge unmanaged files
+ force => false, # don't purge subdirs and links
+ require => File["${vardir}/brick/"],
+ }
}
# vim: ts=8