summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2013-09-23 16:10:56 -0400
committerJames Shubin <james@shubin.ca>2013-09-23 16:10:56 -0400
commit2aa4163f52eb55cdd376946ad05c5d74a45c14f8 (patch)
tree39dba26f2fab0809bde43b4813f307ce14c77697 /templates
parent17aff1a33a001cbb56735ff9f61a9bbcaa40cb04 (diff)
downloadpuppet-gluster-2aa4163f52eb55cdd376946ad05c5d74a45c14f8.tar.gz
puppet-gluster-2aa4163f52eb55cdd376946ad05c5d74a45c14f8.tar.xz
puppet-gluster-2aa4163f52eb55cdd376946ad05c5d74a45c14f8.zip
Add gluster version fact and operating-version templating.
Puppet-gluster now correctly picks the operating-version value from a table of known version -> value correspondences. Future value additions should be added to this table.
Diffstat (limited to 'templates')
-rw-r--r--templates/glusterd.info.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/glusterd.info.erb b/templates/glusterd.info.erb
index 23df83d..a02a379 100644
--- a/templates/glusterd.info.erb
+++ b/templates/glusterd.info.erb
@@ -1,2 +1,4 @@
UUID=<%= valid_uuid %>
-operating-version=<%= valid_version %>
+<% if operating_version != '' and operating_version != '-1' -%>
+operating-version=<%= operating_version %>
+<% end -%>