diff options
author | Micah Anderson <micah@riseup.net> | 2013-04-16 11:57:34 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-04-16 11:57:34 -0400 |
commit | b398f3cb0a67d1170d0564a3f03977f9a08c2b6c (patch) | |
tree | 1f70506007a312005741d3efc497160792957a50 | |
parent | 967e0097f9447d6c73eeb99ef4b0df2a941820c3 (diff) |
add a version parameter to enable installing different versions of the haproxy package
-rw-r--r-- | manifests/init.pp | 7 |
1 files changed, 6 insertions, 1 deletions
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', |