init.sls 666 B

1234567891011121314151617181920212223
  1. #
  2. # Linux Kernel
  3. #
  4. {% set node_config = salt['pillar.get']('nodes:' ~ grains['id'], {}) %}
  5. {% set version_fallback = "4.8.0-0.bpo.2-amd64" %}
  6. {% set version_global = salt['pillar.get']('ffho:kernel_version', version_fallback) %}
  7. {% set version = node_config.get('kernel_version', version_global) %}
  8. linux-kernel:
  9. pkg.installed:
  10. - name: linux-image-{{ version }}
  11. - fromrepo: jessie-backports
  12. {#
  13. # Install kernel headers if we might need to compile a batman_adv module on this node.
  14. #}
  15. {% if 'batman' in node_config.get('roles', []) %}
  16. linux-headers:
  17. pkg.installed:
  18. - name: linux-headers-{{ version }}
  19. - fromrepo: jessie-backports
  20. {% endif %}