Enable gzip compression on nodepool logs

Add a .htaccess to the nodepool log directory to enable gzip
compression for text/text mime-types; e.g. the quite large .log files
that nodepool outputs there

Change-Id: Ie0b269835ebb8effbac0285b782d8add7b47db32
This commit is contained in:
Ian Wienand 2014-10-15 11:58:28 +11:00
parent e86cd862c8
commit bded3bc5a9
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text
</IfModule>

View File

@ -267,6 +267,17 @@ class nodepool (
],
}
}
# htaccess to enable the large .log files to send with gzip
# compression
file { "${image_log_document_root}/.htaccess":
ensure => present,
source => 'puppet:///modules/nodepool/nodepool-log.htaccess',
mode => '0644',
owner => 'nodepool',
group => 'nodepool',
require => File[$image_log_document_root],
}
}
if $sudo == true {