opscode-cookbooks/apt — pull request #3 by cap10morgan (2012-04-24 18:34:10+00:00)
Title: add apt-get upgrade execute resource

I added an apt-get upgrade execute resource that can be manually run from other recipes. Here's my use case:

On Linode, when I bootstrap a new Ubuntu 11.10 node with knife linode server create, I need the latest packages installed or my private IP address won't show up correctly and my other recipes that need that will fail.

So I use this to run an apt-get update && apt-get upgrade -y on the first boot only (i.e. not on every chef-client run).