Do not use site-wide cgit.conf
authorPeter Palfrader <peter@palfrader.org>
Mon, 13 Jul 2015 06:30:15 +0000 (08:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 13 Jul 2015 06:30:15 +0000 (08:30 +0200)
modules/roles/files/dgit/browse.dgit.debian.org
modules/roles/manifests/dgit_browse.pp

index 51c9dfd..148b767 100644 (file)
@@ -20,6 +20,7 @@
        <Directory "/usr/lib/cgit/">
                AllowOverride None
                Options ExecCGI FollowSymlinks
+               Require all granted
        </Directory>
 
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/x-js text/javascript text/css 
index 8a9a8ff..fe06a31 100644 (file)
@@ -11,6 +11,10 @@ class roles::dgit_browse {
        file { '/etc/cgitrc':
                source => 'puppet:///modules/roles/dgit/cgitrc',
        }
+       file { '/etc/apache2/conf-enabled/cgit.conf':
+               ensure => absent,
+               notify => Service['apache2'],
+       }
 
        apache2::site { '010-browse.dgit.debian.org':
                site    => 'browse.dgit.debian.org',