diff options
author | James Shubin <james@shubin.ca> | 2013-09-23 16:10:56 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2013-09-23 16:10:56 -0400 |
commit | 2aa4163f52eb55cdd376946ad05c5d74a45c14f8 (patch) | |
tree | 39dba26f2fab0809bde43b4813f307ce14c77697 /templates | |
parent | 17aff1a33a001cbb56735ff9f61a9bbcaa40cb04 (diff) | |
download | puppet-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.erb | 4 |
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 -%> |