From 24844a892c07001bb50eeb443005d3c2fe5d4025 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 8 Sep 2013 01:28:39 -0400 Subject: This patch adds fact magic to make specifying host uuid's optional. If you would like to be ultra lazy and not specify any uuid's manually, the puppet module can now generate them on your behalf. This will take at least two puppet runs because of the distributed nature of gluster and because the uuid facts must be exported to all the nodes for peering. Please note that if you rebuild a node from scratch, you probably won't get the same UUID. You can either set it manually, or paste one in the /var/lib/puppet/tmp/gluster/uuid/uuid file. Watch the formatting! --- examples/distributed-replicate-example.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/distributed-replicate-example.pp') diff --git a/examples/distributed-replicate-example.pp b/examples/distributed-replicate-example.pp index 8543d7e..20cfb7e 100644 --- a/examples/distributed-replicate-example.pp +++ b/examples/distributed-replicate-example.pp @@ -23,7 +23,8 @@ class gluster_base { gluster::host { 'annex1.example.com': # use uuidgen to make these - uuid => '1f660ca2-2c78-4aa0-8f4d-21608218c69c', + # NOTE: specifying a host uuid is optional and can be automatic + #uuid => '1f660ca2-2c78-4aa0-8f4d-21608218c69c', } gluster::brick { 'annex1.example.com:/mnt/storage1a': -- cgit