diff options
author | James Shubin <james@shubin.ca> | 2013-09-18 15:50:08 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2013-09-18 15:50:08 -0400 |
commit | a1cccc4827bffcae27966369baeeb68baec024f2 (patch) | |
tree | c449e1ae42caf5670d9ee47eb5e87fc8399e4ccb | |
parent | 2ade18f753c8993c670402bff4d2f235ce9a7e14 (diff) | |
download | puppet-gluster-a1cccc4827bffcae27966369baeeb68baec024f2.tar.gz puppet-gluster-a1cccc4827bffcae27966369baeeb68baec024f2.tar.xz puppet-gluster-a1cccc4827bffcae27966369baeeb68baec024f2.zip |
Set operating-version in glusterd.info
This should really be switched based on the operating gluster version. A
table of values and gluster versions is needed. The gluster version
could be created as a fact.
-rw-r--r-- | manifests/host.pp | 2 | ||||
-rw-r--r-- | templates/glusterd.info.erb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp index e3a12c4..960ed30 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -58,6 +58,8 @@ define gluster::host( fail('No valid UUID exists yet!') } else { # set a unique uuid per host + # FIXME: set appropriate version based on gluster version + $valid_version = '2' file { '/var/lib/glusterd/glusterd.info': content => template('gluster/glusterd.info.erb'), owner => root, diff --git a/templates/glusterd.info.erb b/templates/glusterd.info.erb index 512f6e1..23df83d 100644 --- a/templates/glusterd.info.erb +++ b/templates/glusterd.info.erb @@ -1 +1,2 @@ UUID=<%= valid_uuid %> +operating-version=<%= valid_version %> |