summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-16 11:57:34 -0400
committerMicah Anderson <micah@riseup.net>2013-04-16 11:57:34 -0400
commitb398f3cb0a67d1170d0564a3f03977f9a08c2b6c (patch)
tree1f70506007a312005741d3efc497160792957a50
parent967e0097f9447d6c73eeb99ef4b0df2a941820c3 (diff)
add a version parameter to enable installing different versions of the haproxy package
-rw-r--r--manifests/init.pp7
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',