Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/dns/knot/config.sls b/roles/dns/knot/config.sls
index 739e72c..bd9946f 100644
--- a/roles/dns/knot/config.sls
+++ b/roles/dns/knot/config.sls
@@ -1,36 +1,54 @@
# -------------------------------------------------------------
# Salt — KnotDNS configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% 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
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ dirs.etc }}/knot/knot.conf:
file.managed:
- source: salt://roles/dns/knot/files/knot.conf
- template: jinja
- context:
zones: {{ pillar["dns_zones"] }}
all_ips: {{ [ salt['node.resolve_network']()['ipv4_address'] ] + salt['node.get_public_ipv6']() }}
identity: {{ pillar["dns_identity"] }}
# -------------------------------------------------------------
# KnotDNS zones files provisioning
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% for zone in pillar["dns_zones"] %}
knotdns_file_{{ zone }}:
file.managed:
- source: salt://roles/dns/knot/files/zones/{{ zone }}.zone
- name: /var/db/knot/{{ zone }}.zone
- template: jinja
- context:
identity: {{ pillar["dns_identity"] }}
{% endfor %}
diff --git a/roles/dns/knot/files/sysctl b/roles/dns/knot/files/sysctl
new file mode 100644
index 0000000..963aebe
--- /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/x-diff
Expires
Mon, Sep 15, 05:17 (11 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2978208
Default Alt Text
(2 KB)

Event Timeline