From ca290d42f9d97e4db3a85429a0374319fc4a4b91 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 22 Dec 2013 18:38:04 -0500 Subject: Improved auto repo management and version selection. Introduced a split between repo management and version choosing. You can now: * Choose a package version or leave it at the default (latest). If you choose a package version it must include the release string. eg: in foobar-3.2.1-42.el6 the release is 42.el6 This doesn't check to see if your version is valid! * Choose whether you want a gluster repo added automatically. If you did specify a version, it will pick the correct repo. This doesn't check that the repo for your os/version exists! --- manifests/simple.pp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifests/simple.pp') diff --git a/manifests/simple.pp b/manifests/simple.pp index dec6dc7..63bc914 100644 --- a/manifests/simple.pp +++ b/manifests/simple.pp @@ -22,6 +22,7 @@ class gluster::simple( $stripe = 1, # TODO: not fully implemented in puppet-gluster $vip = '', # strongly recommended $repo = true, + $version = '', $shorewall = true ) { include gluster::vardir @@ -60,6 +61,7 @@ class gluster::simple( class { '::gluster::server': vip => "${vip}", repo => $repo, + version => "${version}", #zone => 'net', # defaults to net shorewall => $shorewall, } -- cgit