Page MenuHomeDevCentral

D3655.id.diff
No OneTemporary

D3655.id.diff

diff --git a/roles/dns/knot/config.sls b/roles/dns/knot/config.sls
--- a/roles/dns/knot/config.sls
+++ b/roles/dns/knot/config.sls
@@ -7,6 +7,24 @@
{% from "map.jinja" import dirs with context %}
+# -------------------------------------------------------------
+# FreeBSD configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/etc/sysctl.d/knot.conf:
+ file.managed:
+ - source: salt://roles/dns/knot/files/sysctl
+ - user: root
+ - group: wheel
+ - mode: 644
+ - makedirs: True
+
+knot_reload_sysctl:
+ cmd.run:
+ - name: sysctl -f /etc/sysctl.d/knot.conf
+ - onchanges:
+ - file: /etc/sysctl.d/knot.conf
+
# -------------------------------------------------------------
# KnotDNS main configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/roles/dns/knot/files/sysctl b/roles/dns/knot/files/sysctl
new file mode 100644
--- /dev/null
+++ b/roles/dns/knot/files/sysctl
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# KnotDNS
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/dns/knot/files/sysctl
+# -------------------------------------------------------------
+#
+# <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>
+
+net.inet.tcp.fastopen.server_enable=1

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 7, 12:26 (16 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2964403
Default Alt Text
D3655.id.diff (1 KB)

Event Timeline