summaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/host.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index d30a9e4..1423d0f 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -28,6 +28,10 @@ define gluster::host(
#$vardir = $::gluster::vardir::module_vardir # with trailing slash
$vardir = regsubst($::gluster::vardir::module_vardir, '\/$', '')
+ if ("${uuid}" != '') and "${uuid}" =~ /^[a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}$/) {
+ fail("The chosen UUID: '${uuid}' is not valid.")
+ }
+
Gluster::Host[$name] -> Service['glusterd'] # glusterd requires host
# if we're on itself