Age | Commit message (Collapse) | Author |
|
Closes #37
|
|
|
|
When the apt job starts, it will sleep for a random period between 0 and
APT::Periodic::RandomSleep seconds. The default value is "1800" so that
the script will stall for up to 30 minutes (1800 seconds) so that the
mirror servers are not crushed by everyone running their updates all at
the same time. Only set this to 0 if you use a local mirror and don't
mind the load spikes. Note that while the apt job is sleeping it will
cause the execution of the rest of your cron.daily jobs to be delayed.
|
|
|
|
Default configuration was taken from the following archives
file ./etc/apt/apt.conf.d/50unattended-upgrades
Debian:
* 6 Squeeze: unattended-upgrades_0.62.2+squeeze1_all.deb
* 7 Wheezy: unattended-upgrades_0.79.5+wheezy2_all.deb
* 8 Jessie: unattended-upgrades_0.83.3.2+deb8u1_all.deb
Ubuntu:
* 12.04LTS Precise Pangolin: unattended-upgrades_0.76ubuntu1.1_all.deb
* 14.04LTS Trusty Tahr: unattended-upgrades_0.82.1ubuntu2.3_all.deb
* 15.04 Vivid Vervet: unattended-upgrades_0.83.6ubuntu1_all.deb
* 15.10 Wily Werewolf: unattended-upgrades_0.86.2ubuntu1_all.deb
|
|
unattended-upgrades are broken on Ubuntu by default due to origins typo
|
|
|
|
compatibility with Puppet < 3.5.0
|
|
Fix the typo in the default origins parameter for Ubuntu that was causing all
unattended-upgrades to be disabled on Ubuntu machines by default.
|
|
Using `include apt` causes problems. If someone in the catalogue does an
`class { 'apt: }` and we come after it with `include apt` this will
work. However if the order is reversed we'll get a duplicate resource
definition.
Closes #12
|
|
The `size` hash could only ever have the `max` key so it makes more
sense to have this as a plain value.
This also upgrades the dependency on stdlib to 4.6.0 since we're using
the new `validate_integer` function.
|
|
Setting it to 'undef' makes it the string undef, not having it set makes
it undef/nil for Puppet.
|
|
|
|
First take the defaults and the merge the user passed in options into
them, not the other way around as then our defaults end up overriding
some of the keys users pass in.
|
|
|
|
Apt class takes care of this well enough for us.
|
|
|