diff options
author | varac <varacanero@zeromail.org> | 2013-06-14 19:47:07 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-06-14 19:47:07 +0200 |
commit | 8a54ee6ff08c7b498e8da8f5e8ca6827c4d0ff58 (patch) | |
tree | 724e8d8fbb9970a5f1f420bd36fbd410a45b6bfc /manifests/init.pp | |
parent | 65dc795b3f2ec99a08b652c2b59555235dbca48b (diff) | |
parent | 1e6fbdf7f1f7e381ef01170eab96727377abe3b6 (diff) |
Merge remote-tracking branch 'leap/parameterized_classes'
Conflicts:
manifests/init.pp
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index b398c54..a176bf8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -17,27 +17,16 @@ # TODO: warn on cert/key issues, fail on false accept? -class stunnel { - - case $stunnel_ensure_version { - '': { $stunnel_ensure_version = 'present' } - default: { $stunnel_ensure_version = 'present' } - } +class stunnel ( + $ensure_version = 'present', + $startboot = '1', + $default_extra = '', + $cluster = '' ) +{ 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'; - } - } - } + debian: { class { 'stunnel::debian': } } + centos: { class { 'stunnel::centos': } } + default: { class { 'stunnel::default': } } } } |