diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index b08058e..d167dc5 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,9 +4,9 @@ # Copyright 2009, Riseup Networks <micah@riseup.net> # # -# This program is free software; you can redistribute -# it and/or modify it under the terms of the GNU -# General Public License version 3 as published by +# This program is free software; you can redistribute +# it and/or modify it under the terms of the GNU +# General Public License version 3 as published by # the Free Software Foundation. # # 1. include stunnel: this will automatically include stunnel::debian, @@ -17,22 +17,22 @@ # TODO: warn on cert/key issues, fail on false accept? -class stunnel { +class stunnel( + $cluster = '', + $ensure_version = 'present', + $startboot = '1', + $default_extra = '' +) { - case $stunnel_ensure_version { - '': { $stunnel_ensure_version = "present" } - } - - case $operatingsystem { + case $::operatingsystem { debian: { include stunnel::debian } centos: { include stunnel::centos } default: { include stunnel::default } } - if $use_nagios { - case $nagios_stunnel_procs { - 'false': { info("We aren't doing nagios checks for stunnel on ${fqdn}" ) } - default: { nagios::service { "stunnel": check_command => "nagios-stat-proc!/usr/bin/stunnel4!6!5!proc"; } } + if hiera('use_nagios',false) and hiera('nagios_stunnel_procs',true) { + nagios::service { "stunnel": + check_command => "nagios-stat-proc!/usr/bin/stunnel4!6!5!proc"; } } } |