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.
Extrapolated templates from the state file to jinja templates to clea…
…n things up and make them work properly. Also updated variables to match what Ubuntu 14.04 uses by default.
- Loading branch information
Showing
5 changed files
with
59 additions
and
47 deletions.
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
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,13 @@ | ||
{% set apt = pillar.get('apt:unattended', {}) -%} | ||
{% set enabled = apt.get('enabled', '1') -%} | ||
{% set update_package_lists = apt.get('update_package_lists', '1') -%} | ||
{% set download_upgradeable_packages = apt.get('download_upgradeable_packages', '1') -%} | ||
{% set unattended_upgrade = apt.get('unattended_upgrade', '1') -%} | ||
{% set auto_clean_interval = apt.get('auto_clean_interval', '7') -%} | ||
{% set verbose = apt.get('verbose', '2') -%} | ||
APT::Periodic::Enable "{{ enabled }}"; | ||
APT::Periodic::Update-Package-Lists "{{ update_package_lists }}"; | ||
APT::Periodic::Download-Upgradeable-Packages "{{ download_upgradeable_packages }}"; | ||
APT::Periodic::Unattended-Upgrade "{{ unattended_upgrade }}"; | ||
APT::Periodic::AutocleanInterval "{{ auto_clean_interval }}"; | ||
APT::Periodic::Verbose "{{ verbose }}"; |
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:unattended', {}) -%} | ||
{% set allowed_origins = apt.get('allowed_origins', ['${distro_id}:${distro_codename}-security']) -%} | ||
{% set package_blacklist = apt.get('package_blacklist', {}) -%} | ||
{% set auto_fix_interrupted_dpkg = apt.get('auto_fix_interrupted_dpkg', 'true') -%} | ||
{% set minimal_steps = apt.get('minimal_steps', 'false') -%} | ||
{% set install_on_shutdown = apt.get('install_on_shutdown', 'false') -%} | ||
{% set mail = apt.get('mail', 'root') -%} | ||
{% set mail_only_on_error = apt.get('mail_only_on_error', 'false') -%} | ||
{% set remove_unused_dependencies = apt.get('remove_unused_dependencies', 'true') -%} | ||
{% set automatic_reboot = apt.get('automatic_reboot', 'false') -%} | ||
{% set automatic_reboot_time = apt.get('automatic_reboot_time', 'now') -%} | ||
{% set dl_limit = apt.get('dl_limit', '0') -%} | ||
Unattended-Upgrade::Allowed-Origins { | ||
{%- for pattern in allowed_origins %} | ||
"{{ pattern }}"; | ||
{%- endfor %} | ||
}; | ||
Unattended-Upgrade::Package-Blacklist { | ||
{%- for package in package_blacklist %} | ||
"{{ package }}"; | ||
{%- endfor %} | ||
}; | ||
Unattended-Upgrade::AutoFixInterruptedDpkg "{{ auto_fix_interrupted_dpkg }}"; | ||
Unattended-Upgrade::MinimalSteps "{{ minimal_steps }}"; | ||
Unattended-Upgrade::InstallOnShutdown "{{ install_on_shutdown }}"; | ||
Unattended-Upgrade::Mail "{{ mail }}"; | ||
Unattended-Upgrade::MailOnlyOnError "{{ mail_only_on_error }}"; | ||
Unattended-Upgrade::Remove-Unused-Dependencies "{{ remove_unused_dependencies }}"; | ||
Unattended-Upgrade::Automatic-Reboot "{{ automatic_reboot }}"; | ||
Unattended-Upgrade::Automatic-Reboot-Time "{{ automatic_reboot_time }}"; | ||
Acquire::http::Dl-Limit "{{ dl_limit }}"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apt: | ||
unattended: | ||
origins_pattern: | ||
allowed_origins: | ||
- origin1 | ||
- origin2 | ||
package_blacklist: | ||
|