summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAaron Hicks <hicksa@landcareresearch.co.nz>2014-02-04 17:11:27 +1300
committerAaron Hicks <hicksa@landcareresearch.co.nz>2014-02-04 17:11:27 +1300
commitc0a9ffc076e5bb3fb25103b0bf390b9dc7e756b1 (patch)
treed0893ebaf660e000514f1380c71b04a9ef532ce9 /templates
parent336ef10c89724b13ed06a480243eef5b7a25a601 (diff)
Preserve FQDN parameter
Diffstat (limited to 'templates')
-rw-r--r--templates/client.conf.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/client.conf.erb b/templates/client.conf.erb
index d86a271..696b9b2 100644
--- a/templates/client.conf.erb
+++ b/templates/client.conf.erb
@@ -41,6 +41,11 @@ auth,authpriv.* /var/log/secure
<% end -%>
<% end -%>
+<% if scope.lookupvar('rsyslog::client::preserve_fqdn') -%>
+# Tell rsyslog to use FQDN and not short server names
+$PreserveFQDN on
+<% end -%>
+
<% if scope.lookupvar('rsyslog::client::log_local') -%>
<% if scope.lookupvar('rsyslog::log_style') == 'debian' -%>
# First some standard log files. Log by facility.