Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

autoupdates.sls 515B

123456789101112131415161718192021222324
  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. {%- if system.autoupdates.get('enabled', True) %}
  4. {%- if system.autoupdates.pkgs %}
  5. linux_autoupdates_packages:
  6. pkg.installed:
  7. - pkgs: {{ system.autoupdates.pkgs | json }}
  8. {%- endif %}
  9. {%- if grains.os_family == 'Debian' %}
  10. /etc/apt/apt.conf.d/90autoupdates:
  11. file.managed:
  12. - source: salt://linux/files/90autoupdates
  13. - template: jinja
  14. - user: root
  15. - group: root
  16. - mode: 644
  17. {%- endif %}
  18. {%- endif %}
  19. {%- endif %}