Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24891117
D4006.id10440.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4006.id10440.diff
View Options
diff --git a/roles/core/sysctl/files/sysctl.conf b/roles/core/sysctl/files/sysctl.conf
--- a/roles/core/sysctl/files/sysctl.conf
+++ b/roles/core/sysctl/files/sysctl.conf
@@ -41,3 +41,8 @@
vfs.zfs.prefetch_disable=0
{% endif -%}
+
+# Enable CARP preemption
+{% if salt['node.has_role']("router") -%}
+net.inet.carp.preempt=1
+{% endif -%}
diff --git a/roles/router/carp/files/carp-loader.conf b/roles/router/carp/files/carp-loader.conf
new file mode 100644
--- /dev/null
+++ b/roles/router/carp/files/carp-loader.conf
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Network — rc configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/router/carp/files/carp-loader.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_load="YES"
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
@@ -12,3 +12,9 @@
- context:
carp_entries: {{ salt['node.get_carp_entries']() }}
- mode: '0644'
+
+/boot/loader.conf.d/carp.conf:
+ file.managed:
+ - source: salt://roles/router/carp/files/carp-loader.conf
+ - template: jinja
+ - mode: '0644'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 17, 07:59 (18 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3539045
Default Alt Text
D4006.id10440.diff (1 KB)
Attached To
Mode
D4006: Automate CARP activation and parameter preemption
Attached
Detach File
Event Timeline
Log In to Comment