Browse Source

kernel: install linux-image-amd64 out of jessie-backports as default

Karsten Böddeker 7 years ago
parent
commit
47ce55075c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      kernel/init.sls

+ 3 - 3
kernel/init.sls

@@ -3,12 +3,12 @@
 #
 
 {% set node_config = salt['pillar.get']('nodes:' ~ grains['id'], {}) %}
-{% set version_fallback = "4.8.0-0.bpo.2-amd64" %}
+{% set version_fallback = "amd64" %}
 {% set version_global = salt['pillar.get']('ffho:kernel_version', version_fallback) %}
 {% set version = node_config.get('kernel_version', version_global) %}
 
 linux-kernel:
-  pkg.installed:
+  pkg.latest:
     - name: linux-image-{{ version }}
     - fromrepo: jessie-backports
 
@@ -17,7 +17,7 @@ linux-kernel:
  #}
 {% if 'batman' in node_config.get('roles', []) and 'v14' in grains['id'] %}
 linux-headers:
-  pkg.installed:
+  pkg.latest:
     - name: linux-headers-{{ version }}
     - fromrepo: jessie-backports
 {% endif %}