summaryrefslogtreecommitdiff
path: root/templates/client.conf.erb
diff options
context:
space:
mode:
authorSteffen Zieger <me@saz.sh>2013-12-26 04:12:19 -0800
committerSteffen Zieger <me@saz.sh>2013-12-26 04:12:19 -0800
commitacf2755cda80e2ecd107ed8de4d275c383db0487 (patch)
tree8a31bba5306311dd81ec90bf443c501304c24320 /templates/client.conf.erb
parentf8a05e0e6dd7a40fe53329a20ff81227b23bb398 (diff)
parentfb924446a69b9ce07ea898d5d301ccca8de72b2f (diff)
Merge pull request #40 from raphink/dev/ssl
SSL support
Diffstat (limited to 'templates/client.conf.erb')
-rw-r--r--templates/client.conf.erb13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/client.conf.erb b/templates/client.conf.erb
index e5dfb8c..d86a271 100644
--- a/templates/client.conf.erb
+++ b/templates/client.conf.erb
@@ -8,6 +8,17 @@ $ActionQueueSaveOnShutdown on # save messages to disk on shutdown
$ActionQueueType LinkedList # run asynchronously
$ActionResumeRetryCount -1 # infinety retries if host is down
+<% if scope.lookupvar('rsyslog::client::ssl') -%>
+# Setup SSL connection.
+# CA/Cert
+$DefaultNetStreamDriverCAFile <%= scope.lookupvar('rsyslog::client::ssl_ca') %>
+
+# Connection settings.
+$DefaultNetstreamDriver gtls
+$ActionSendStreamDriverMode 1
+$ActionSendStreamDriverAuthMode anon
+<% end -%>
+
<% if scope.lookupvar('rsyslog::client::log_remote') -%>
# Log to remote syslog server using <%= scope.lookupvar('rsyslog::client::remote_type') %>
<% if scope.lookupvar('rsyslog::client::remote_type') == 'tcp' -%>
@@ -79,7 +90,7 @@ news.notice -/var/log/news/news.notice
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
-#
+#
# $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably