This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
forked from purpleidea/puppet-gluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add per brick defaults to gluster::simple for easier [physical] clust…
…ers. I've had most of this patch in my head for at least a week, and I finally got the time to implement it! If you are building a symmetrical cluster, that has consistent device naming across all of the hosts, then this patch is the magic that should make your life _significantly_ easier. (*cough, cough*: Ben England...) In the corner case that some of your device have different names, you can still use this feature in conjunction with the other parameters to first set global defaults, and then override as needed. If you don't specify an overriding parameter (such as $count) then the number of elements in this array will be used as the brick count! Please note that this patch provides the $brick_params_defaults option which is different from the $brick_param_defaults option which will still work, and is useful in conjunction with this option as the way to set brick defaults across the whole cluster. For more questions you'll be happy to see that this patch comes with documentation and example updates.
- Loading branch information
1 parent
7c423fa
commit cc6db62
Showing
4 changed files
with
87 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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! | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.