|
@@ -1,4 +1,3 @@
|
|
|
-{%- import "globals.sls" as globals with context %}
|
|
|
{%- set node_config = salt['pillar.get'] ('nodes:' ~ grains['id']) %}
|
|
|
{%- set ro_community = salt['pillar.get'] ('ffho:snmp:ro_community', "Configure ffho:snmp:ro_community in pillar...") %}
|
|
|
{%- set sys_location = node_config.get ('sysLocation', "Please fix sysLocation...") %}
|
|
@@ -28,8 +27,9 @@ sysServices 72
|
|
|
#
|
|
|
# Network interfaces
|
|
|
#
|
|
|
-{%- if 'gateway' in globals.ROLES %}
|
|
|
+{%- if 'gateway' in node_config.get ('roles', []) %}
|
|
|
# Set B.A.T.M.A.N. related devices to 100 MBit/s
|
|
|
+# FIXME: For all sites 'n stuff
|
|
|
interface bat0 6 100000000
|
|
|
interface inter-gw-vpn 6 100000000
|
|
|
interface mesh-vpn-v4 6 100000000
|