priestjim/chef-openresty — pull request #6 by sdelano (2013-04-15 23:15:00+00:00)
Title: Persist Configure Flags

**NOTE:** This PR is an extension of https://github.com/priestjim/chef-openresty/pull/3, but can also be copied and applied to the master branch if needed.

The issue being addressed here is that nginx can be built and configured in such a way that the configure flags passed into the openresty build do not match the configure flags that nginx exposes via the ohai plugin.

Specifically, passing `--with-ldopts=luuid` as a configure argument to OpenResty results in `luuid` being appended to the already existing `--with-ldopts` argument that would get passed into nginx. Since the OpenResty configure script is simple a perl script that transforms arguments and passes them along to the nginx configure (and it's logic is subject to change), I opted to save the configure arguments passed along to OpenResty and compare them to arguments in subsequent chef-client runs to determine if OpenResty needs to be rebuilt.