Use multipackage installs throughout
authorTim Smith <tsmith@chef.io>
Wed, 15 Nov 2017 23:14:53 +0000 (15:14 -0800)
committerTom Hughes <tom@compton.nu>
Thu, 16 Nov 2017 08:49:53 +0000 (08:49 +0000)
commit19aeb7bfffb852ab8be005c004b1ef8e555a5b77
tree2f6519c39155cbc088aa59904e2eafe445cb340e
parent34666b81c1ff78ac49e2afb85f6cabf8742dfb4c
Use multipackage installs throughout

In Chef 12.1 we introduced multipackage installs. Instead of shelling
out to dpkg for each package to determine what we should do we gather
the information we need and check each package in the array. It's faster
and it takes less memory. It's especially useful after the first run when
nothing actually changes. Far fewer resources consumed.

I noticed you arranged the packages so I tried to keep them to that
same arrangement and I used multiline arrays since they make the diffs
nicer in the future as you add / remove packages. This isn't necessary
for Chef 13, but it's best practice.

Signed-off-by: Tim Smith <tsmith@chef.io>
Closes #137
30 files changed:
cookbooks/accounts/recipes/default.rb
cookbooks/apache/recipes/default.rb
cookbooks/apt/recipes/default.rb
cookbooks/backup/recipes/default.rb
cookbooks/blogs/recipes/default.rb
cookbooks/clamav/recipes/default.rb
cookbooks/dev/recipes/default.rb
cookbooks/dns/recipes/default.rb
cookbooks/donate/recipes/default.rb
cookbooks/elasticsearch/recipes/default.rb
cookbooks/exim/recipes/default.rb
cookbooks/forum/recipes/default.rb
cookbooks/foundation/recipes/owg.rb
cookbooks/geodns/recipes/default.rb
cookbooks/gps-tile/recipes/default.rb
cookbooks/imagery/recipes/default.rb
cookbooks/letsencrypt/recipes/default.rb
cookbooks/logstash/recipes/default.rb
cookbooks/mediawiki/recipes/default.rb
cookbooks/ntp/recipes/default.rb
cookbooks/sysctl/recipes/default.rb
cookbooks/taginfo/recipes/default.rb
cookbooks/tile/recipes/default.rb
cookbooks/tilecache/recipes/default.rb
cookbooks/tilelog/recipes/default.rb
cookbooks/tools/recipes/default.rb
cookbooks/trac/recipes/default.rb
cookbooks/web/recipes/gpx.rb
cookbooks/wordpress/recipes/default.rb
cookbooks/yournavigation/recipes/default.rb