Page MenuHomeDevCentral

D4097.id10722.diff
No OneTemporary

D4097.id10722.diff

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

Mime Type
text/plain
Expires
Sat, May 2, 08:38 (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3677798
Default Alt Text
D4097.id10722.diff (2 KB)

Event Timeline