opscode-cookbooks/passenger_apache2 — pull request #21 by simonrobson (2013-07-26 13:00:41+00:00)
Title: Make sure to compile the version of passenger on the node attrribute

Currently, installing passenger version x via this recipe, then changing to version y where y < x leads to breakage, as version y is not compiled.

When compiling from source, the cookbook calls *passenger-install-apache2-module*. By default this will compile the most recent version of the passenger gem on the machine. In the case that the version specified on the node is older than the most recent version installed on the node, the older version will not be compiled (the latest version will be recompiled). However the apache config will be updated as though the older version had been compiled, leading to breakage,

This change passes the node passenger version attribute to *passenger-install-apache2-module* to force compilation of the specified version.