From db0e06f48d09f94f92fb78087a717b79c9da6eac Mon Sep 17 00:00:00 2001 From: James Shubin Date: Thu, 10 Oct 2013 19:35:20 -0400 Subject: Automatic brick ordering and finite state machine support. This patch adds preliminary FSM support. This will be used and abused more extensively in later patches. Automatic brick ordering is an advanced feature and is meant for experienced puppet users. Changing the available bricks before the cluster is built is not currently supported. For that type of magic, please wait for gluster::elastic. This feature expects that you name your bricks and hosts intelligently. Future patches will recommend a specific nomenclature, but for now as long as the brick paths and hostnames follow a padded, incrementing integer pattern, with a common prefix, you shouldn't see any problems. --- examples/gluster-simple-example.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/gluster-simple-example.pp (limited to 'examples') diff --git a/examples/gluster-simple-example.pp b/examples/gluster-simple-example.pp new file mode 100644 index 0000000..a050343 --- /dev/null +++ b/examples/gluster-simple-example.pp @@ -0,0 +1,16 @@ +# +# simple gluster setup. yeah, that's it. +# this should run on *every* gluster host +# NOTE: this should use a VIP. +# + +node /^annex\d+$/ { # annex{1,2,..N} + + # NOTE: this class offers some configuration, see the source for info. + # NOTE: this is mostly intended for fast gluster testing. for more + # complex setups, you might want to look at the other examples. + class { '::gluster::simple': + } + +} + -- cgit