From 9797d0051cd0ae263734c35df44aee33f9287586 Mon Sep 17 00:00:00 2001 From: Tomas Hejatko Date: Fri, 13 May 2016 15:34:55 +0200 Subject: [PATCH] support package version parameter --- manifests/init.pp | 4 ++++ manifests/install.pp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 7de864b..d0e6624 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -22,6 +22,9 @@ # [*repo_release*] # OS release version. Only LTS is supported # +# [*package_version*] +# version of package to ensure, defaults to installed +# # [*conf_merge*] # Ignore the value bound to ceph::conf and perform a # hiera_hash call to merge config fragments tegether @@ -57,6 +60,7 @@ $manage_repo = true, $repo_version = 'hammer', $repo_release = 'trusty', + $package_version = 'installed', # Global configuration $conf_merge = false, $conf = { diff --git a/manifests/install.pp b/manifests/install.pp index c2fb439..0de0fda 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -5,7 +5,7 @@ assert_private() package { 'ceph': - ensure => installed, + ensure => $::ceph::package_version, } ensure_packages($::ceph::prerequisites)