Skip to content

Commit 0ef93eb

Browse files
authored
Merge pull request #4 from sohonet/CVF-6820
CVF-6820: Allow overriding stunnel package version
2 parents ce3f509 + 97eeed6 commit 0ef93eb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

manifests/data.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class stunnel::data {
66
case $::osfamily {
77
/RedHat/: {
8-
$package = [ 'stunnel', 'redhat-lsb' ]
8+
$package = { 'stunnel' => { ensure => $stunnel::ensure }, 'redhat-lsb' => {} }
99
$service = 'stunnel'
1010
$bin_name = 'stunnel'
1111
$bin_path = '/usr/bin'
@@ -24,7 +24,7 @@
2424
}
2525
}
2626
/Debian/: {
27-
$package = [ 'stunnel4', 'lsb-base' ]
27+
$package = { 'stunnel4' => { ensure => $stunnel::ensure }, 'lsb-base' => {} }
2828
$service = 'stunnel'
2929
$bin_name = 'stunnel4'
3030
$bin_path = '/usr/bin'

manifests/init.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#
33
# STunnel Management
44
#
5-
class stunnel {
5+
class stunnel (
6+
Optional[String] $ensure = installed,
7+
) {
68
file { '/usr/local/bin/stunnel-combine-certs':
79
ensure => 'present',
810
owner => 'root',

0 commit comments

Comments
 (0)