]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
http://bugs-mirror.d.o should not work
authorPeter Palfrader <peter@palfrader.org>
Fri, 22 Jun 2012 18:32:19 +0000 (20:32 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 22 Jun 2012 18:32:19 +0000 (20:32 +0200)
modules/roles/files/bugs_mirror/bugs-mirror.debian.org [new file with mode: 0644]
modules/roles/manifests/bugs_mirror.pp

diff --git a/modules/roles/files/bugs_mirror/bugs-mirror.debian.org b/modules/roles/files/bugs_mirror/bugs-mirror.debian.org
new file mode 100644 (file)
index 0000000..10ff4ef
--- /dev/null
@@ -0,0 +1,21 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+# bugs-mirror is an rsync service, not a web service
+
+<VirtualHost *:80>
+       ServerName bugs-mirror.debian.org
+       ServerAdmin debian-admin@debian.org
+
+       ErrorLog /var/log/apache2/bugs-mirror.debian.org-error.log
+       CustomLog /var/log/apache2/bugs-mirror.debian.org-access.log combined
+
+       <IfModule mod_userdir.c>
+               UserDir disabled
+       </IfModule>
+
+       Redirect permanent / http://bugs.debian.org/
+</VirtualHost>
+# vim:set syn=apache:
index 4d03a9aee5165f2d8248a4b38e835de4c6bca50e..f6e1f2af023c023b5ff3f905baea7702e2e37232 100644 (file)
@@ -4,4 +4,12 @@ class roles::bugs_mirror {
                source      => 'puppet:///modules/roles/bugs_mirror/rsyncd.conf',
                max_clients => 100,
        }
+
+       if $::apache2 {
+               apache2::site { '009-bugs-mirror.debian.org':
+                       site   => 'bugs-mirror.debian.org',
+                       source => 'puppet:///modules/roles/bugs_mirror/bugs-mirror.debian.org',
+               }
+       }
+
 }