Update repositories before performing upgrades

To ensure the most up to date packages are getting installed during an
upgrade, ensure we rum `yum makecache` or `apt-get update` to update the
repository information first.

Issue rcbops/chef-cookbooks#870
Merge pull request #174 from claco/issue-870

Update repositories before performing upgrades