How to make sure that mod_deflate is off?


#1

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,

Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal


#2

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).

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,

Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal


#3

Putting it anywhere is not very deterministic for some reason I was unable to understand completely, but I’ll try to stick it at the end of the run list and see if it helps, but I was hoping not to have to create a recipe just for that. :slight_smile:


Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On July 25, 2013 at 15:55:00, Lucas Hansen (lucash@opscode.com) wrote:

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).

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,

Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal