From 2aa4163f52eb55cdd376946ad05c5d74a45c14f8 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 23 Sep 2013 16:10:56 -0400 Subject: 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. --- templates/glusterd.info.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/glusterd.info.erb') 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 -%> -- cgit