]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/manifests/mod/autoindex.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / autoindex.pp
diff --git a/3rdparty/modules/apache/manifests/mod/autoindex.pp b/3rdparty/modules/apache/manifests/mod/autoindex.pp
new file mode 100644 (file)
index 0000000..c0969a8
--- /dev/null
@@ -0,0 +1,12 @@
+class apache::mod::autoindex {
+  ::apache::mod { 'autoindex': }
+  # Template uses no variables
+  file { 'autoindex.conf':
+    ensure  => file,
+    path    => "${::apache::mod_dir}/autoindex.conf",
+    content => template('apache/mod/autoindex.conf.erb'),
+    require => Exec["mkdir ${::apache::mod_dir}"],
+    before  => File[$::apache::mod_dir],
+    notify  => Class['apache::service'],
+  }
+}