forked from saltstack-formulas/apt-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add listchanges config and fixed typo in unattended.sls
- Loading branch information
Niels Abspoel
committed
Sep 20, 2016
1 parent
3af4a0e
commit 5570415
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This is the main state file for configuring apt-listchanges | ||
{% from "apt/map.jinja" import apt as apt_map with context %} | ||
{% set apt = pillar.get('apt:listchanges', {}) -%} | ||
{% set listchanges_config_template = apt.get('listchanges_config_template', 'salt://apt/templates/listchanges_config.jinja') -%} | ||
apt_listchanges_pkgs: | ||
pkg.installed: | ||
- name: apt-listchanges | ||
/etc/apt/listchanges.conf: | ||
file.managed: | ||
- template: jinja | ||
- user: root | ||
- group: root | ||
- mode: 644 | ||
- source: {{ listchanges_config_template }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% set apt = pillar.get('apt', {}) -%} | ||
{% set unattended = apt.get('listchanges', {}) -%} | ||
{%- for profile_name, profile_details in listchanges.get('profiles', {}).items() %} | ||
{%- set frontend = profile_details.get('frontend', None) %} | ||
{%- set email_address = profile_details.get('email_address', None) %} | ||
{%- set confirm = profile_details.get('confirm', None) %} | ||
{%- set save_seen = profile_details.get('save_seen', None) %} | ||
{%- set which = profile_details.get('which', None) %} | ||
{%- set browser = profile_details.get('browser', None %} | ||
|
||
[{{ profile_name }}] | ||
{%- if frontend != None %} | ||
frontend={{ frontend }} | ||
{%- endif %} | ||
{%- if email_address != None %} | ||
email_address={{ email_address }} | ||
{%- endif %} | ||
{%- if confirm != None %} | ||
confirm={{ confirm }} | ||
{%- endif %} | ||
{%- if save_seen != None %} | ||
save_seen={{ save_seen }} | ||
{%- endif %} | ||
{%- if which != None %} | ||
which={{ which }} | ||
{%- endif %} | ||
{%- if browser != None %} | ||
browser={{ browser }} | ||
{%- endif %} | ||
|
||
{%- endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters