summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-01-23 19:27:16 -0500
committerJames Shubin <james@shubin.ca>2014-01-23 19:30:33 -0500
commitb0f905c751ded462c1c4400c3a7c1d1513608a5b (patch)
tree7d514dd1437fdb45de85a8972c1e32124ff316db /templates
parent7f48c51fb1fcf9a2bcda760565e1e5ba3eff1d3e (diff)
downloadpuppet-gluster-b0f905c751ded462c1c4400c3a7c1d1513608a5b.tar.gz
puppet-gluster-b0f905c751ded462c1c4400c3a7c1d1513608a5b.tar.xz
puppet-gluster-b0f905c751ded462c1c4400c3a7c1d1513608a5b.zip
Add support for specifying the base-port option in glusterd.vol
See: https://bugzilla.redhat.com/show_bug.cgi?id=987555 for info.
Diffstat (limited to 'templates')
-rw-r--r--templates/glusterd.vol.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/glusterd.vol.erb b/templates/glusterd.vol.erb
index 9bac52a..5285aa0 100644
--- a/templates/glusterd.vol.erb
+++ b/templates/glusterd.vol.erb
@@ -5,5 +5,9 @@ volume management
option transport.socket.keepalive-time 10
option transport.socket.keepalive-interval 2
option transport.socket.read-fail-log off
+<% if @valid_baseport > 0 -%>
+ option base-port <%= @valid_baseport %>
+<% else -%>
# option base-port 49152
+<% end -%>
end-volume