Browse Source

Add "APT::Periodic::Verbose" setting to unattended state.

master
root 10 years ago
parent
commit
8cd8d5c47e
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      apt/unattended.sls
  2. +1
    -0
      pillar.example

+ 2
- 0
apt/unattended.sls View File

{% set download_upgradeable_packages = salt['pillar.get']('apt:unattended:download_upgradeable_packages', '1') %} {% set download_upgradeable_packages = salt['pillar.get']('apt:unattended:download_upgradeable_packages', '1') %}
{% set unattended_upgrade = salt['pillar.get']('apt:unattended:unattended_upgrade', '1') %} {% set unattended_upgrade = salt['pillar.get']('apt:unattended:unattended_upgrade', '1') %}
{% set auto_clean_interval = salt['pillar.get']('apt:unattended:auto_clean_interval', '7') %} {% 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 }}: {{ map.confd_dir }}/{{ map.periodic_config }}:
file.managed: file.managed:
APT::Periodic::Download-Upgradeable-Packages "{{ download_upgradeable_packages }}"; APT::Periodic::Download-Upgradeable-Packages "{{ download_upgradeable_packages }}";
APT::Periodic::Unattended-Upgrade "{{ unattended_upgrade }}"; APT::Periodic::Unattended-Upgrade "{{ unattended_upgrade }}";
APT::Periodic::AutocleanInterval "{{ auto_clean_interval }}"; APT::Periodic::AutocleanInterval "{{ auto_clean_interval }}";
APT::Periodic::Verbose "{{ verbose }}";

+ 1
- 0
pillar.example View File

download_upgradeable_packages: 1 download_upgradeable_packages: 1
unattended_upgrade: 1 unattended_upgrade: 1
auto_clean_interval: 7 auto_clean_interval: 7
verbose: 2

Loading…
Cancel
Save