We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce3f509 commit 97eeed6Copy full SHA for 97eeed6
manifests/data.pp
@@ -5,7 +5,7 @@
5
class stunnel::data {
6
case $::osfamily {
7
/RedHat/: {
8
- $package = [ 'stunnel', 'redhat-lsb' ]
+ $package = { 'stunnel' => { ensure => $stunnel::ensure }, 'redhat-lsb' => {} }
9
$service = 'stunnel'
10
$bin_name = 'stunnel'
11
$bin_path = '/usr/bin'
@@ -24,7 +24,7 @@
24
}
25
26
/Debian/: {
27
- $package = [ 'stunnel4', 'lsb-base' ]
+ $package = { 'stunnel4' => { ensure => $stunnel::ensure }, 'lsb-base' => {} }
28
29
$bin_name = 'stunnel4'
30
manifests/init.pp
@@ -2,7 +2,9 @@
2
#
3
# STunnel Management
4
-class stunnel {
+class stunnel (
+ Optional[String] $ensure = installed,
+) {
file { '/usr/local/bin/stunnel-combine-certs':
ensure => 'present',
owner => 'root',
0 commit comments