Browse Source

Install nice and shiny Kernel with VRF feature.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 years ago
parent
commit
94dde65c06
1 changed files with 18 additions and 0 deletions
  1. 18 0
      kernel/init.sls

+ 18 - 0
kernel/init.sls

@@ -0,0 +1,18 @@
+#
+# Linux Kernel
+#
+
+linux-4.7:
+  pkg.installed:
+    - name: linux-image-4.7.0-0.bpo.1-amd64
+    - fromrepo: jessie-backports
+
+{#
+ # Install kernel headers if we might need to compile a batman_adv module on this node.
+ #}
+{% if 'batman' in salt['pillar.get']('nodes:' ~ grains['id'] ~ ':roles', []) %}
+linux-4.7-headers:
+  pkg.installed:
+    - name: linux-headers-4.7.0-0.bpo.1-amd64
+    - fromrepo: jessie-backports
+{% endif %}