Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3911085
D2905.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
437 B
Referenced Files
None
Subscribers
None
D2905.diff
View Options
diff --git a/roles/core/network/routes.sls b/roles/core/network/routes.sls
--- a/roles/core/network/routes.sls
+++ b/roles/core/network/routes.sls
@@ -23,7 +23,7 @@
# Enable packet forwarding for routers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-{% if "router" in salt['node.get_list']('roles') %}
+{% if salt['node.has_role']("router") %}
{% if grains['os'] == 'FreeBSD' %}
/etc/rc.d/routing/router:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 01:22 (21 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307175
Default Alt Text
D2905.diff (437 B)
Attached To
Mode
D2905: Use node.has_role method
Attached
Detach File
Event Timeline
Log In to Comment