Sfoglia il codice sorgente

Update unattended.sls

master
Ben McClure 9 anni fa
parent
commit
4db2ca91f4
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      apt/unattended.sls

+ 4
- 4
apt/unattended.sls Vedi File

@@ -1,11 +1,11 @@
# This is the main state file for configuring unattended upgrades with apt

{% from "apt/map.jinja" import map with context %}
{% from "apt/map.jinja" import apt with context %}

apt_unattended_pakgs::
pkg.installed:
- pkgs:
{% for pkg in map.pkgs %}
{% for pkg in apt.pkgs %}
- {{ pkg }}
{% endfor %}

@@ -20,7 +20,7 @@ apt_unattended_pakgs::
{% set automatic_reboot = salt['pillar.get']('apt:unattended:automatic_reboot', 'false') %}
{% set dl_limit = salt['pillar.get']('apt:unattended:dl_limit', '0') %}

{{ map.confd_dir }}/{{ map.unattended_config }}:
{{ apt.confd_dir }}/{{ apt.unattended_config }}:
file.managed:
- contents: |
Unattended-Upgrade::Origins-Pattern {
@@ -49,7 +49,7 @@ apt_unattended_pakgs::
{% set auto_clean_interval = salt['pillar.get']('apt:unattended:auto_clean_interval', '7') %}
{% set verbose = salt['pillar.get']('apt:unattended:verbose', '2') %}

{{ map.confd_dir }}/{{ map.periodic_config }}:
{{ apt.confd_dir }}/{{ apt.periodic_config }}:
file.managed:
- contents: |
APT::Periodic::Enable "{{ enabled }}";

Loading…
Annulla
Salva