]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/manifests/mod/deflate.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / deflate.pp
diff --git a/3rdparty/modules/apache/manifests/mod/deflate.pp b/3rdparty/modules/apache/manifests/mod/deflate.pp
new file mode 100644 (file)
index 0000000..9b8d436
--- /dev/null
@@ -0,0 +1,24 @@
+class apache::mod::deflate (
+  $types = [
+    'text/html text/plain text/xml',
+    'text/css',
+    'application/x-javascript application/javascript application/ecmascript',
+    'application/rss+xml'
+  ],
+  $notes = {
+    'Input'  => 'instream',
+    'Output' => 'outstream',
+    'Ratio'  => 'ratio'
+  }
+) {
+  ::apache::mod { 'deflate': }
+
+  file { 'deflate.conf':
+    ensure  => file,
+    path    => "${::apache::mod_dir}/deflate.conf",
+    content => template('apache/mod/deflate.conf.erb'),
+    require => Exec["mkdir ${::apache::mod_dir}"],
+    before  => File[$::apache::mod_dir],
+    notify  => Class['apache::service'],
+  }
+}