summaryrefslogtreecommitdiffstats
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2012-07-24 19:28:59 -0400
committerJames Shubin <james@shubin.ca>2012-07-24 19:28:59 -0400
commit61cf89af55bd57a224f0e600746a05a71fdb4c95 (patch)
treebf25d30450b882218e141b5c4e9d818515f10514 /manifests/init.pp
downloadpuppet-gluster-61cf89af55bd57a224f0e600746a05a71fdb4c95.tar.gz
puppet-gluster-61cf89af55bd57a224f0e600746a05a71fdb4c95.tar.xz
puppet-gluster-61cf89af55bd57a224f0e600746a05a71fdb4c95.zip
Initial commit. puppet-gluster, welcome to git.
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp62
1 files changed, 62 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..ad356a7
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,62 @@
+# Simple? gluster module by James
+# Copyright (C) 2010-2012 James Shubin
+# Written by James Shubin <james@shubin.ca>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
+# NOTES
+#
+
+# * To rebuild gluster (erasing all data), rm -rf the storage dirs to
+# clear metadata. To do this without erasing data, read this article:
+# http://joejulian.name/blog/glusterfs-path-or-a-prefix-of-it-is-already-part-of-a-volume/
+#
+# * List of state codes:
+# <MESSAGE> <CODE>
+# static char *glusterd_friend_sm_state_names[] = { # glusterd-sm.c
+# "Establishing Connection", # 0
+# "Probe Sent to Peer", # 1
+# "Probe Received from Peer", # 2
+# "Peer in Cluster", # 3 (verified)
+# "Accepted peer request", # 4
+# "Sent and Received peer request", # 5
+# "Peer Rejected", # 6 (verified)
+# "Peer detach in progress", # 7
+# "Probe Received from peer", # 8
+# "Connected to Peer", # 9
+# "Peer is connected and Accepted", # 10
+# "Invalid State" # 11
+# };
+#
+# * To use this gluster module, it's recommended that all nodes receive
+# the same puppet configuration. Puppet is smart enough to know what to
+# run on each participating node. Watchout for the mild race condition.
+#
+# * TODO: add more notes...
+
+#
+# XXX: FIXME: TODO
+#
+# XXX: does parted align disks properly ?
+# XXX: mkfs.xfs -ssize=4k /dev/sdc1 ? # should "-s sector_size" be used ? http://kb.lsi.com/KnowledgebaseArticle16187.aspx ?
+# XXX: setup auth somehow... ip address based for now
+
+# FIXME: test this: https://bugzilla.redhat.com/show_bug.cgi?id=GLUSTER-3769
+# FIXME: peering: maybe we can just specify a guid somewhere so that everyone peers together ?
+# FIXME: can we setup gluster by using templated volume files instead ?
+
+# TODO: package { 'xfsdump': ensure => present } is this useful for something ?
+# TODO: find out when ports are actually necessary for version 3.3
+