Enable lingering for the contributors user
[mirror/dsa-puppet.git] / modules / roles / manifests / anonscm.pp
index 0342a25..90b5e76 100644 (file)
@@ -11,7 +11,9 @@ class roles::anonscm {
                content => template('roles/anonscm/anonscm.debian.org.conf.erb')
        }
 
-       concat { '/etc/apache2/conf-available/anonscm.map.conf': }
+       concat { '/etc/apache2/conf-available/anonscm.map.conf':
+               notify  => Exec['service apache2 reload'],
+       }
        concat::fragment { 'anonscm.map-header':
                target => '/etc/apache2/conf-available/anonscm.map.conf',
                order  => '000',
@@ -29,7 +31,7 @@ class roles::anonscm {
                target => '/etc/apache2/conf-available/anonscm.map.conf',
                order  => '900',
                content  => @(EOF)
-                       </Macro anonscm.debian.org-anonscm-map>
+                       </Macro>
                        | EOF
        }
        file { "/etc/apache2/conf-enabled/anonscm.map.conf":
@@ -37,4 +39,16 @@ class roles::anonscm {
                target => "../conf-available/anonscm.map.conf",
                notify  => Exec['service apache2 reload'],
        }
+
+       file { '/srv/anonscm.debian.org':
+               ensure  => directory,
+       }
+
+       file { '/srv/anonscm.debian.org/htdocs':
+               ensure  => directory,
+       }
+
+       file { '/srv/anonscm.debian.org/htdocs/index.html':
+               source => 'puppet:///modules/roles/anonscm/index.html',
+       }
 }