rcbops-cookbooks/horizon — pull request #95 by mancdaz (2013-05-08 10:59:03+00:00)
Title: remove 3x resource cloning of ports.conf template resource

Issue DE117

Partially Addresses DE61

Fixes: https://github.com/rcbops/chef-cookbooks#377

The apache2 cookbook clones the ports.conf template resource, in apache2::default and apache2::mod_ssl.

The horizon cookbook then clones the resource again to provide different listen IP/port options.

This pull essentially implements the functionality of the mod_ssl recipe inside the horizon cookbook so that we don't have to call the tainted version from the apache2 cookbook.

We also 'rewind' the template resource that is laid down by the apache2::default recipe using chef-rewind, so that we can include our own listen IP/port options.

Result:

- before: 3 copies of the ports.conf template resource
- after: 1 copy of the resource (as it should be)