Page MenuHomeDevCentral

D2596.id6550.diff
No OneTemporary

D2596.id6550.diff

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
@@ -14,6 +14,14 @@
# and will be lost if the state is redeployed.
# </auto-generated>
+{% if is_router %}
+# -------------------------------------------------------------
+# Network
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+net.inet.ip.forwarding=1
+{% endif %}
+
# -------------------------------------------------------------
# VFS — kernel interface to file systems
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/roles/core/sysctl/init.sls b/roles/core/sysctl/init.sls
--- a/roles/core/sysctl/init.sls
+++ b/roles/core/sysctl/init.sls
@@ -18,5 +18,6 @@
- context:
use_zfs: {{ use_zfs }}
mem: {{ grains['mem_total'] }}
+ is_router: {{ "router" in grains['roles'] }}
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 00:37 (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265325
Default Alt Text
D2596.id6550.diff (970 B)

Event Timeline