Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Chef cookbook to install and configure APT unattended_upgrades
Shell Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attributes Added enable_upgrades flag instead of hardcoding
recipes
templates/default
.gitignore Add .gitignore and LICENSE, as suggested by github
LICENSE
README.rdoc Added enable_upgrades flag instead of hardcoding
Vagrantfile
metadata.rb Bump minor version to 0.2.0 for enable_upgrades flag
test.sh Test on multiple versions of Ubuntu with test coverage

README.rdoc

Description

Configure APT to do unattended upgrades as security fixes are released.

Requirements

Ubuntu or maybe Debian.

Tested on:

  • Ubuntu 10.04 LTS with chef-client 10.14.2

  • Ubuntu 12.04 LTS wtih chef-client 10.14.2

  • Ubuntu 14.04 LTS with chef-client 11.12.2

Attributes

The following node attributes are passed to the APT configuration template:

  • unattended_upgrades[:upgrade_email] - email to receive notifications

  • unattended_upgrades[:auto_reboot] - automatically reboot without confirmation if necessary (default false)

  • unattended_upgrades[:enable_upgrades] - enable or disable unattended upgrades (default true)

Usage

include_recipe "unattended_upgrades"

Contributing

github.com/mcary/unattended_upgrades

Testing

$ vagrant up $ver
$ vagrant ssh $ver -- sudo sh /vagrant/test.sh

Where $ver is 10.04, 12.04, or 14.04.

Something went wrong with that request. Please try again.