diff --git a/modules/nodepool/files/nodepool-log.htaccess b/modules/nodepool/files/nodepool-log.htaccess new file mode 100644 index 0000000000..494e8a7abb --- /dev/null +++ b/modules/nodepool/files/nodepool-log.htaccess @@ -0,0 +1,3 @@ + +AddOutputFilterByType DEFLATE text/text + \ No newline at end of file diff --git a/modules/nodepool/manifests/init.pp b/modules/nodepool/manifests/init.pp index 9f282ed99c..ff268084bf 100644 --- a/modules/nodepool/manifests/init.pp +++ b/modules/nodepool/manifests/init.pp @@ -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 {