Browse Source

Don't load B.A..T.M.A.N. kernel module when role batman isn't present (anymore).

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
0134197c34
1 changed files with 3 additions and 2 deletions
  1. 3 2
      batman/init.sls

+ 3 - 2
batman/init.sls

@@ -7,8 +7,6 @@
 # has been configured for this node.
 #
 {%- set roles = salt['pillar.get']('nodes:' ~ grains['id']  ~ ':roles', []) %}
-include:
-  - apt
 
 {%- if 'batman' in roles %}
 batctl:
@@ -61,6 +59,9 @@ batman-adv-dkms:
 /etc/bat-hosts:
   file.absent
 
+/etc/modules-load.d/batman-adv.conf:
+  file.absent
+
 /etc/cron.d/ff_check_gateway:
   file.absent