From b398f3cb0a67d1170d0564a3f03977f9a08c2b6c Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 16 Apr 2013 11:57:34 -0400 Subject: add a version parameter to enable installing different versions of the haproxy package --- manifests/init.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 7815769..b91591a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -15,6 +15,10 @@ # Chooses whether haproxy should be installed or ensured absent. # Currently ONLY accepts valid boolean true/false values. # +# [*version*] +# Allows you to specify what version of the package to install. +# Default is simply 'present' +# # [*global_options*] # A hash of all the haproxy global options. If you want to specify more # than one option (i.e. multiple timeout or stats options), pass those @@ -62,6 +66,7 @@ class haproxy ( $manage_service = true, $enable = true, + $version = 'present', $global_options = $haproxy::params::global_options, $defaults_options = $haproxy::params::defaults_options ) inherits haproxy::params { @@ -69,7 +74,7 @@ class haproxy ( package { 'haproxy': ensure => $enable ? { - true => present, + true => $version, false => absent, }, name => 'haproxy', -- cgit v1.2.3