dev/provisioning/modules/apache/manifests/mod/deflate.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     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     'application/json'
       
     8   ],
       
     9   $notes = {
       
    10     'Input'  => 'instream',
       
    11     'Output' => 'outstream',
       
    12     'Ratio'  => 'ratio'
       
    13   }
       
    14 ) {
       
    15   ::apache::mod { 'deflate': }
       
    16 
       
    17   file { 'deflate.conf':
       
    18     ensure  => file,
       
    19     path    => "${::apache::mod_dir}/deflate.conf",
       
    20     content => template('apache/mod/deflate.conf.erb'),
       
    21     require => Exec["mkdir ${::apache::mod_dir}"],
       
    22     before  => File[$::apache::mod_dir],
       
    23     notify  => Class['apache::service'],
       
    24   }
       
    25 }