summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSaz <me@saz.sh>2011-12-03 15:54:33 +0100
committerSaz <me@saz.sh>2011-12-03 15:54:33 +0100
commit53b8b635b4a012844b6f236b13cf79a976a238e3 (patch)
tree131191fa9896fd92979141a2ae136b1c8032d0b3 /templates
parent9e9d4e12e93eba7c4b4ece18e7679a8a166e12ec (diff)
use high-precision timestamps on log server if enabled
Diffstat (limited to 'templates')
-rw-r--r--templates/rsyslog.conf.erb8
-rw-r--r--templates/server.conf.erb8
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/rsyslog.conf.erb b/templates/rsyslog.conf.erb
index d522ae0..12f85c3 100644
--- a/templates/rsyslog.conf.erb
+++ b/templates/rsyslog.conf.erb
@@ -8,14 +8,6 @@ $ModLoad imuxsock # provides support for local system logging
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
#$ModLoad immark # provides --MARK-- message capability
-<% if scope.lookupvar('rsyslog::params::high_precision_timestamps') == false -%>
-#
-# Use traditional timestamp format.
-# To enable high precision timestamps, comment out the following line.
-#
-$ActionFileDefaultTemplate RSYSLOG_ForwardFormat
-<% end -%>
-
###########################
#### GLOBAL DIRECTIVES ####
###########################
diff --git a/templates/server.conf.erb b/templates/server.conf.erb
index 402c0e6..41fdcef 100644
--- a/templates/server.conf.erb
+++ b/templates/server.conf.erb
@@ -1,5 +1,13 @@
# File is managed by puppet
+<% if scope.lookupvar('rsyslog::server::high_precision_timestamps') == false -%>
+#
+# Use traditional timestamp format.
+# To enable high precision timestamps, comment out the following line.
+#
+$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+<% end -%>
+
<% if scope.lookupvar('rsyslog::server::enable_udp') -%>
$ModLoad imudp
$UDPServerRun 514