Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F25170498
D4036.id10546.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
D4036.id10546.diff
View Options
diff --git a/roles/router/carp/files/newsyslog.conf b/roles/router/carp/files/newsyslog.conf
new file mode 100644
--- /dev/null
+++ b/roles/router/carp/files/newsyslog.conf
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — CARP 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/carp.log root:wheel 644 7 1000 * JC
diff --git a/roles/router/carp/files/syslog.conf b/roles/router/carp/files/syslog.conf
new file mode 100644
--- /dev/null
+++ b/roles/router/carp/files/syslog.conf
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------
+# Salt — CARP 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>
+
+!carp-ovh
+*.* /var/log/carp.log
diff --git a/roles/router/carp/init.sls b/roles/router/carp/init.sls
--- a/roles/router/carp/init.sls
+++ b/roles/router/carp/init.sls
@@ -40,3 +40,18 @@
vault:
approle: {{ salt["credentials.read_secret"]("network/router/vault") }}
addr: {{ pillar["nasqueron_services"]["vault_url"] }}
+
+/var/log/carp.log:
+ file.managed:
+ - mode: '0644'
+
+/usr/local/etc/syslog.d/carp.conf:
+ file.managed:
+ - source: salt://roles/router/carp/files/syslog.conf
+ - mode: '0644'
+ - makedirs: True
+
+/etc/newsyslog.conf.d/carp.conf:
+ file.managed:
+ - source: salt://roles/router/carp/files/newsyslog.conf
+ - mode: '0644'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 00:46 (13 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3591867
Default Alt Text
D4036.id10546.diff (2 KB)
Attached To
Mode
D4036: Configure a dedicated syslog file for carp-ovh logs
Attached
Detach File
Event Timeline
Log In to Comment