Page MenuHomeDevCentral

D4032.diff
No OneTemporary

D4032.diff

diff --git a/roles/router/carp/files/carp-devd.conf b/roles/router/carp/files/carp-devd.conf
new file mode 100644
--- /dev/null
+++ b/roles/router/carp/files/carp-devd.conf
@@ -0,0 +1,21 @@
+# -------------------------------------------------------------
+# Network — CARP devd configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/router/carp/files/carp-devd.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>
+
+notify 0 {
+ match "system" "CARP";
+ match "subsystem" "[0-9]+@[0-9a-z.]+";
+ match "type" "(MASTER|BACKUP)";
+ action "/usr/local/scripts/carp/carp-ovh-switch.sh $subsystem $type";
+};
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,9 @@
vault:
approle: {{ salt["credentials.read_secret"]("network/router/vault") }}
addr: {{ pillar["nasqueron_services"]["vault_url"] }}
+
+/usr/local/etc/devd/carp.conf:
+ file.managed:
+ - source: salt://roles/router/carp/files/carp-devd.conf
+ - makedirs: True
+ - mode: '0644'

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 01:52 (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3587856
Default Alt Text
D4032.diff (1 KB)

Event Timeline