# # stunnel puppet module # # Copyright 2009, Riseup Networks # # # 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, # which automatically includes stunnel::linux, which automatically # includes stunnel::base # 2. stunnel::client allows you to configure different /etc/stunnel/*.conf files # to provide various stunnel configurations # TODO: warn on cert/key issues, fail on false accept? class stunnel( $cluster = '', $ensure_version = 'present', $startboot = '1', $default_extra = '' ) { case $::operatingsystem { debian: { include stunnel::debian } centos: { include stunnel::centos } default: { include stunnel::default } } 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"; } } }