// KNEL Unattended-Upgrades Configuration
// Automatically install security updates

Unattended-Upgrade {
    // Automatically upgrade packages from these origins
    Allowed-Origins {
        "${distro_id}:${distro_codename}";
        "${distro_id}:${distro_codename}-security";
        "${distro_id}ESMApps:${distro_codename}-apps-security";
        "${distro_id}ESM:${distro_codename}-infra-security";
    };

    // Package blacklist - never auto-upgrade these
    Package-Blacklist {
    };

    // Send email to this address for problems or packages upgrades
    // Uncomment and set to a valid email address for notifications
    //Unattended-Upgrade::Mail "admin@knownelement.com";

    // Remove unused automatically installed kernel-related packages
    Remove-Unused-Kernel-Packages "true";

    // Do automatic removal of newly unused dependencies after the upgrade
    Remove-New-Unused-Dependencies "true";

    // Remove unused dependencies
    Remove-Unused-Dependencies "true";

    // Automatically reboot *WITHOUT CONFIRMATION* if the file
    // /var/run/reboot-required is found after the upgrade
    Automatic-Reboot "false";

    // If automatic reboot is enabled and the system needs to reboot,
    // reboot at the specific time instead of immediately
    //Automatic-Reboot-Time "02:00";

    // Use apt bandwidth limit feature
    //Acquire::http::Dl-Limit "70";

    // Enable logging to syslog
    SyslogEnable "true";

    // Syslog facility
    SyslogFacility "daemon";
};
