summaryrefslogtreecommitdiffstats
path: root/examples/gluster-simple-physical-example-best.pp
blob: 06be1eda167851bdc7e9df8f4d04dd5175dbd9c9 (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
#
#	really simple gluster setup for physical provisioning.
#	(yeah, that's it-- for iron!)
#

node /^annex\d+$/ {	# annex{1,2,..N}

	class { '::gluster::simple':
		replica => 2,
		vip = '192.168.1.42',
		vrrp = true,
		# NOTE: _each_ host will have four bricks with these devices...
		brick_params_defaults = [	# note the spelling and type...
			{'dev' => '/dev/sdb'},
			{'dev' => '/dev/sdc'},
			{'dev' => '/dev/sdd'},
			{'dev' => '/dev/sde'},
		],
		brick_param_defaults => {	# every brick will use these...
			lvm => false,
			xfs_inode64 => true,
			force => true,
		},
		#brick_params => {},	# NOTE: you can also use this option to
		# override a particular fqdn with the options that you need to!
	}
}