diff options
author | James Shubin <james@shubin.ca> | 2013-09-08 01:28:39 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2013-09-08 01:28:39 -0400 |
commit | 24844a892c07001bb50eeb443005d3c2fe5d4025 (patch) | |
tree | 2791e5ff324488afa2cc18860a6c71fefc404765 /examples | |
parent | 7c2dc0cadc03bc5dd2da3155e5773ad4471563df (diff) | |
download | puppet-gluster-24844a892c07001bb50eeb443005d3c2fe5d4025.tar.gz puppet-gluster-24844a892c07001bb50eeb443005d3c2fe5d4025.tar.xz puppet-gluster-24844a892c07001bb50eeb443005d3c2fe5d4025.zip |
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!
Diffstat (limited to 'examples')
-rw-r--r-- | examples/distributed-replicate-example.pp | 3 | ||||
-rw-r--r-- | examples/filesystem-backed-bricks-example.pp | 4 |
2 files changed, 5 insertions, 2 deletions
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': diff --git a/examples/filesystem-backed-bricks-example.pp b/examples/filesystem-backed-bricks-example.pp index 461283c..e87f777 100644 --- a/examples/filesystem-backed-bricks-example.pp +++ b/examples/filesystem-backed-bricks-example.pp @@ -25,7 +25,9 @@ class gluster_base { } gluster::host { 'annex2.example.com': - uuid => '2fbe6e2f-f6bc-4c2d-a301-62fa90c459f8', + # NOTE: specifying a host uuid is now optional! + # if you don't choose one, one will be assigned + #uuid => '2fbe6e2f-f6bc-4c2d-a301-62fa90c459f8', } gluster::brick { 'annex2.example.com:/data/gluster-storage2': |