Page MenuHomeDevCentral

D4036.id10546.diff
No OneTemporary

D4036.id10546.diff

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

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)

Event Timeline