summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2013-10-10 19:35:20 -0400
committerJames Shubin <james@shubin.ca>2013-10-10 22:54:33 -0400
commitdb0e06f48d09f94f92fb78087a717b79c9da6eac (patch)
treeb6045e23cf1c3615d20ed07cc25186d1c094cf80 /examples
parentb9153d8859b11d9672ba285dc0f281b0bdf78119 (diff)
downloadpuppet-gluster-db0e06f48d09f94f92fb78087a717b79c9da6eac.tar.gz
puppet-gluster-db0e06f48d09f94f92fb78087a717b79c9da6eac.tar.xz
puppet-gluster-db0e06f48d09f94f92fb78087a717b79c9da6eac.zip
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/gluster-simple-example.pp16
1 files changed, 16 insertions, 0 deletions
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':
+ }
+
+}
+