Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3782453
D2596.id6550.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
970 B
Referenced Files
None
Subscribers
None
D2596.id6550.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
@@ -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
Details
Attached
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)
Attached To
Mode
D2596: Set kernel state for router
Attached
Detach File
Event Timeline
Log In to Comment