{% set apt = pillar.get('apt', {}) -%} {% set unattended = apt.get('unattended', {}) -%} {% set allowed_origins = unattended.get('allowed_origins', ['${distro_id}:${distro_codename}-security']) -%} {% set origins_patterns = unattended.get('origins_patterns', ['origin=Debian,archive=stable,label=Debian-Security']) -%} {% set package_blacklist = unattended.get('package_blacklist', {}) -%} {% set auto_fix_interrupted_dpkg = unattended.get('auto_fix_interrupted_dpkg', 'true') -%} {% set minimal_steps = unattended.get('minimal_steps', 'false') -%} {% set install_on_shutdown = unattended.get('install_on_shutdown', 'false') -%} {% set mail = unattended.get('mail', 'root') -%} {% set mail_only_on_error = unattended.get('mail_only_on_error', 'false') -%} {% set remove_unused_dependencies = unattended.get('remove_unused_dependencies', 'true') -%} {% set automatic_reboot = unattended.get('automatic_reboot', 'false') -%} {% set automatic_reboot_time = unattended.get('automatic_reboot_time', 'now') -%} {% set dl_limit = unattended.get('dl_limit', '0') -%} Unattended-Upgrade::Allowed-Origins { {%- for pattern in allowed_origins %} "{{ pattern }}"; {%- endfor %} }; Unattended-Upgrade::Origins-Pattern { {%- for pattern in origins_patterns %} "{{ 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 }}";