aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2021-06-28 14:31:43 +0200
committerTim Meusel <tim@bastelfreak.de>2021-06-28 15:52:12 +0200
commit9303892000eab6f5c38dc80a002945f8a57e4af6 (patch)
tree11a10640dd89cecfb407b9e917473097ee7edd8f /manifests
parent01643c2e5cf2c538009f397e680e9e2d266b311b (diff)
downloadpuppet-ferm-9303892000eab6f5c38dc80a002945f8a57e4af6.tar.gz
puppet-ferm-9303892000eab6f5c38dc80a002945f8a57e4af6.tar.bz2
Enable users to the package ensure
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/install.pp2
2 files changed, 3 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9317fbf..312e441 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -47,6 +47,7 @@
# @param preserve_chains_in_tables Hash with table:chains[] to use ferm @preserve for (since ferm v2.4)
# Example: {'nat' => ['PREROUTING', 'POSTROUTING']}
# @param install_method method used to install ferm
+# @param package_ensure sets the ensure parameter for the package resource
# @param vcsrepo git repository where ferm sources are hosted
# @param vcstag git tag used when install_method is vcsrepo
class ferm (
@@ -69,6 +70,7 @@ class ferm (
Array[Enum['ip','ip6']] $ip_versions = ['ip','ip6'],
Hash[String[1],Array[String[1]]] $preserve_chains_in_tables = {},
Enum['package','vcsrepo'] $install_method = 'package',
+ String[1] $package_ensure = 'installed',
Stdlib::HTTPSUrl $vcsrepo = 'https://github.com/MaxKellermann/ferm.git',
String[1] $vcstag = 'v2.5.1',
) {
diff --git a/manifests/install.pp b/manifests/install.pp
index c27cedf..6d0f8d1 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -10,7 +10,7 @@ class ferm::install {
case $ferm::install_method {
'package': {
package { 'ferm':
- ensure => 'latest',
+ ensure => $ferm::package_ensure,
}
}
'vcsrepo': {