]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/manifests/mod/deflate.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / deflate.pp
1 class apache::mod::deflate (
2   $types = [
3     'text/html text/plain text/xml',
4     'text/css',
5     'application/x-javascript application/javascript application/ecmascript',
6     'application/rss+xml'
7   ],
8   $notes = {
9     'Input'  => 'instream',
10     'Output' => 'outstream',
11     'Ratio'  => 'ratio'
12   }
13 ) {
14   ::apache::mod { 'deflate': }
15
16   file { 'deflate.conf':
17     ensure  => file,
18     path    => "${::apache::mod_dir}/deflate.conf",
19     content => template('apache/mod/deflate.conf.erb'),
20     require => Exec["mkdir ${::apache::mod_dir}"],
21     before  => File[$::apache::mod_dir],
22     notify  => Class['apache::service'],
23   }
24 }