]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Make sure that a top level index exists for websites
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 30 Aug 2011 13:32:50 +0000 (10:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 30 Aug 2011 13:32:50 +0000 (10:32 -0300)
manifests/subsystems/websites.pp

index 1ca0ecb22a2a5517a909605787df228b6f7c86dd..cf9d5ec83fd2dd06f65b8729fda44901d6b5fe1b 100644 (file)
@@ -60,6 +60,11 @@ class websites::setup {
                  "puppet:///modules/nodo/htdocs/missing.html", ]
   }
 
+  # Make sure that a top level index exists
+  file { "/var/www/index.html":
+    ensure => present,
+  }
+
   # Default vhost: can just be applied on the defining host
   apache::site { "$default_vhost":
     server_alias => "$domain",