[chef] Re: How to make sure that mod_deflate is off?


Chronological Thread 
  • From: Lucas Hansen < >
  • To: "< >" < >
  • Subject: [chef] Re: How to make sure that mod_deflate is off?
  • Date: Thu, 25 Jul 2013 18:54:23 +0000
  • Accept-language: en-US

If you are using the Opscode apache2 cookbook you could just put:

apache_module "deflate" { enable false }

in some recipe at the end of your run list (or really pretty much anywhere).

- Lucas
On Jul 25, 2013, at 11:31 AM, Cassiano Leal < "> >
 wrote:

Hi,

I have a node that has a requirement not to compress the webpages.

The apache configuration is handled by the apache2 cookbook and its web_app resource, which includes the recipe apache2::mod_deflate.

I need to make sure that mod_deflate will be off when the node finishes converging, otherwise some dependent services will fail.

What’s the best approach for that?

I thought about declaring an apache_module resource with action :nothing and then notifying it to run delayed when web_app is called, but it seems a bit convoluted. Any other options?

Cheers,




Archive powered by MHonArc 2.6.16.

§