From fb924446a69b9ce07ea898d5d301ccca8de72b2f Mon Sep 17 00:00:00 2001 From: Mathieu Bornoz Date: Wed, 1 May 2013 10:10:35 +0200 Subject: SSL support --- manifests/client.pp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'manifests/client.pp') diff --git a/manifests/client.pp b/manifests/client.pp index 624dfe8..37be590 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -14,6 +14,7 @@ # [*custom_params*] # [*server*] # [*port*] +# [*ssl_ca*] # # === Variables # @@ -30,7 +31,8 @@ class rsyslog::client ( $custom_config = undef, $custom_params = undef, $server = 'log', - $port = '514' + $port = '514', + $ssl_ca = undef, ) inherits rsyslog { $content_real = $custom_config ? { @@ -41,6 +43,14 @@ class rsyslog::client ( rsyslog::snippet {'client': ensure => present, content => $content_real, - } + } + + if $rsyslog::ssl and $ssl_ca == undef { + fail('You need to define $ssl_ca in order to use SSL.') + } + + if $rsyslog::ssl and $remote_type != 'tcp' { + fail('You need to enable tcp in order to use SSL.') + } } -- cgit v1.2.3