Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F27208421
D4097.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D4097.diff
View Options
diff --git a/roles/core/network/files/newsyslog_gre.conf b/roles/core/network/files/newsyslog_gre.conf
new file mode 100644
--- /dev/null
+++ b/roles/core/network/files/newsyslog_gre.conf
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — GRE newsyslog
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/router/carp/files/newsyslog.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+/var/log/gre-tunnels.log root:wheel 644 7 1000 * JC
diff --git a/roles/core/network/files/syslog_gre.conf b/roles/core/network/files/syslog_gre.conf
new file mode 100644
--- /dev/null
+++ b/roles/core/network/files/syslog_gre.conf
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------
+# Salt — GRE syslog
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/router/carp/files/syslog.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+!gre-tunnels
+*.* /var/log/gre-tunnels.log
diff --git a/roles/core/network/gre_logging.sls b/roles/core/network/gre_logging.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/network/gre_logging.sls
@@ -0,0 +1,26 @@
+/usr/local/etc/syslog.d/gre-tunnels.conf:
+ file.managed:
+ - source: salt://roles/core/network/files/FreeBSD/syslog_gre.conf
+ - user: root
+ - group: wheel
+ - mode: 644
+
+/etc/newsyslog.conf.d/gre-tunnels.conf:
+ file.managed:
+ - source: salt://roles/core/network/files/FreeBSD/newsyslog_gre.conf
+ - user: root
+ - group: wheel
+ - mode: 644
+
+/var/log/gre-tunnels.log:
+ file.managed:
+ - user: root
+ - group: wheel
+ - mode: 644
+ - replace: false
+
+reload_syslogd_for_gre_logs:
+ cmd.run:
+ - name: service syslogd reload
+ - onchanges:
+ - file: /usr/local/etc/syslog.d/gre-tunnels.conf
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 2, 07:14 (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3677798
Default Alt Text
D4097.diff (2 KB)
Attached To
Mode
D4097: log files for GRE creation tunnels
Attached
Detach File
Event Timeline
Log In to Comment