summaryrefslogtreecommitdiffstats
path: root/vagrant/gluster/puppet/manifests/site.pp
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-01-21 11:03:11 -0500
committerJames Shubin <james@shubin.ca>2014-01-21 11:03:11 -0500
commita9e809ff7ae6b30fc5051b3a43166a3caa5c137f (patch)
tree85a12b46a5bd12873409e9d0c9e1963157df01fa /vagrant/gluster/puppet/manifests/site.pp
parent51fea724f4b606326489636a0ffb7e9673600f9b (diff)
downloadpuppet-gluster-a9e809ff7ae6b30fc5051b3a43166a3caa5c137f.tar.gz
puppet-gluster-a9e809ff7ae6b30fc5051b3a43166a3caa5c137f.tar.xz
puppet-gluster-a9e809ff7ae6b30fc5051b3a43166a3caa5c137f.zip
Add support for setting the replica through vagrant.
This adds the --gluster-replica=N flag to the 'vagrant up' command.
Diffstat (limited to 'vagrant/gluster/puppet/manifests/site.pp')
-rw-r--r--vagrant/gluster/puppet/manifests/site.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vagrant/gluster/puppet/manifests/site.pp b/vagrant/gluster/puppet/manifests/site.pp
index a26200f..7e6d53d 100644
--- a/vagrant/gluster/puppet/manifests/site.pp
+++ b/vagrant/gluster/puppet/manifests/site.pp
@@ -52,6 +52,7 @@ node /^annex\d+$/ inherits default { # annex{1,2,..N}
# this is a simple way to setup gluster
class { '::gluster::simple':
volume => 'puppet',
+ replica => "${::vagrant_gluster_replica}",
vip => "${::vagrant_gluster_vip}", # from vagrant
version => "${::vagrant_gluster_version}",
vrrp => true,