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.
|
- {%- from "linux/map.jinja" import system with context %}
- {%- if system.enabled %}
-
- {%- if system.autoupdates.get('enabled', True) %}
-
- {%- if system.autoupdates.pkgs %}
- linux_autoupdates_packages:
- pkg.installed:
- - pkgs: {{ system.autoupdates.pkgs }}
- {%- endif %}
-
- {%- if grains.os_family == 'Debian' %}
- /etc/apt/apt.conf.d/90autoupdates:
- file.managed:
- - source: salt://linux/files/90autoupdates
- - template: jinja
- - user: root
- - group: root
- - mode: 644
- {%- endif %}
-
- {%- endif %}
-
- {%- endif %}
|