Search code examples
puppetubuntu-16.04apt

How to install all upgrades (not just security) with puppet's unattended-upgrades module


I'm using puppet to configure a classroom of desktops running Ubuntu 16.04, and I'm using the puppet unattended-upgrades module.

However, I can't tell from the docs (I'm a Linux noob) how to use this to automatically upgrade all packages, not just security.

In the overview of the module it says:

The unattended_upgrades module allows for the installation and configuration of automatic security (and other) updates through apt.

The "(and other)" seems to indicate it should be able to do this. How can I use this module to upgrade all installed packages, and not just security updates?


Solution

  • You need to set "origins". By default it is just security (see here).

    apt::unattended_upgrades {
      origins             => $::apt::params::origins,
      update              => '1',
      download            => '1',
      upgrade             => '1',
      autoclean           => '7',
    }