Browse Source

batman: Install batctl from backports in Debian buster systems.

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

+ 7 - 1
batman/init.sls

@@ -10,7 +10,13 @@
 
 {%- if 'batman' in roles %}
 batctl:
-  pkg.installed
+  pkg.installed:
+{% if grains.oscodename == 'buster' %}
+    - fromrepo: buster-backports
+{% else %}
+    - fromrepo: {{ grains.oscodename }}
+{% endif %}
+
 
 
 # Convenience bat-hosts file for informative batctl output