cloudamatic/mu

View on GitHub
cookbooks/mu-tools/templates/default/0-mu-log-client.conf.erb

Summary

Maintainability
Test Coverage
$LocalHostName <%= node.name %>

<% if !@syslog_server.nil? %>
# certificate files - just CA for a client
$DefaultNetstreamDriverCAFile <%= @ssl_ca_path %>


# set up the action
$DefaultNetstreamDriver gtls # use gtls netstream driver
$ActionSendStreamDriverMode 1 # require TLS for the connection
$ActionSendStreamDriverAuthMode anon # server is NOT authenticated
*.* @@(o)<%= @syslog_server %>:10514 # send (all) messages
<% end rescue NoMethodError %>