]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
ftp-upcoming
authorPeter Palfrader <peter@palfrader.org>
Fri, 29 Jul 2011 14:23:21 +0000 (16:23 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 29 Jul 2011 14:23:21 +0000 (16:23 +0200)
modules/apache2/files/common/etc/apache2/sites-available/ftp-upcoming.debian.org [new file with mode: 0644]
modules/apache2/manifests/ftp-upcoming_mirror.pp [new file with mode: 0644]

diff --git a/modules/apache2/files/common/etc/apache2/sites-available/ftp-upcoming.debian.org b/modules/apache2/files/common/etc/apache2/sites-available/ftp-upcoming.debian.org
new file mode 100644 (file)
index 0000000..24e6fa0
--- /dev/null
@@ -0,0 +1,16 @@
+##
+## 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
+##
+
+<VirtualHost *:80>
+   ServerAdmin ftpmaster@debian.org
+   DocumentRoot /srv/mirrors/buildd-all
+   ServerName ftp-upcoming.debian.org
+
+   ErrorLog /var/log/apache2/ftp-upcoming.debian.org-error.log
+   LogLevel warn
+   CustomLog /var/log/apache2/ftp-upcoming.debian.org-access.log combined
+
+   IndexOptions FancyIndexing NameWidth=*
+</VirtualHost>
diff --git a/modules/apache2/manifests/ftp-upcoming_mirror.pp b/modules/apache2/manifests/ftp-upcoming_mirror.pp
new file mode 100644 (file)
index 0000000..66a9cce
--- /dev/null
@@ -0,0 +1,17 @@
+class apache2::ftp-upcoming_mirror inherits apache2 {
+    file {
+        "/etc/apache2/sites-available/ftp-upcoming.debian.org":
+            source  => [ "puppet:///modules/apache2/per-host/$fqdn/etc/apache2/sites-available/ftp-upcoming.debian.org",
+                         "puppet:///modules/apache2/common/etc/apache2/sites-available/ftp-upcoming.debian.org" ];
+
+    }
+
+    activate_apache_site {
+        "010-ftp-upcoming.debian.org": site => "ftp-upcoming.debian.org";
+    }
+
+}
+
+# vim:set et:
+# vim:set sts=4 ts=4:
+# vim:set shiftwidth=4: