Skip to content

Commit

Permalink
Update unattended.sls
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcclure committed Mar 19, 2015
1 parent c9d1d16 commit 4db2ca9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apt/unattended.sls
Original file line number Diff line number Diff line change
@@ -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 %}
Expand All @@ -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 {
Expand Down Expand Up @@ -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 }}";
Expand Down

0 comments on commit 4db2ca9

Please sign in to comment.