diff options
author | James Shubin <james@shubin.ca> | 2014-03-08 01:06:22 -0500 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2014-03-16 22:39:07 -0400 |
commit | dd44a559d820c19f6df1cc66019fa8fb7cecb2c1 (patch) | |
tree | 3b04dfb85e78f6b79d826e05ff2cef8651b7b279 /manifests/volume.pp | |
parent | 2dd6acd1eeffbfdcf0436847ee115310198526f4 (diff) | |
download | puppet-gluster-dd44a559d820c19f6df1cc66019fa8fb7cecb2c1.tar.gz puppet-gluster-dd44a559d820c19f6df1cc66019fa8fb7cecb2c1.tar.xz puppet-gluster-dd44a559d820c19f6df1cc66019fa8fb7cecb2c1.zip |
Add support for volume set groups.
This adds support for setting volume set groups which are groups of
properties that are set all at once on a volume. This is managed in a
clever way, so that if the definition of what a certain group contains
gets updated by the package manager, your volumes will get updated too,
on the next puppet run.
Diffstat (limited to 'manifests/volume.pp')
-rw-r--r-- | manifests/volume.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/volume.pp b/manifests/volume.pp index 645c090..f946a54 100644 --- a/manifests/volume.pp +++ b/manifests/volume.pp @@ -24,6 +24,7 @@ define gluster::volume( $vip = '', # vip of the cluster (optional but recommended) $ping = true, # do we want to include fping checks ? $settle = true, # do we want to run settle checks ? + $setgroup = '', # pick a volume property group to set, eg: virt $start = undef # start volume ? true, false (stop it) or undef ) { include gluster::xml @@ -411,6 +412,12 @@ define gluster::volume( alias => "gluster-volume-fsm-watch-${name}", } } + + # set a group of volume properties + if "${setgroup}" != '' { + gluster::volume::property::group { "${name}#${setgroup}": + } + } } # vim: ts=8 |