summaryrefslogtreecommitdiffstats
path: root/manifests/init.pp
blob: 952843fbb895f7b52b657e865496c94e86b53a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# GlusterFS module by James
# Copyright (C) 2010-2013+ 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 # XXX: use volume::property...

# 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

# vim: ts=8