Add a 503.html for archive.debian.net
authorPeter Palfrader <peter@palfrader.org>
Sun, 16 Apr 2017 12:21:18 +0000 (14:21 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 16 Apr 2017 12:21:18 +0000 (14:21 +0200)
modules/roles/files/static-htdocs/archive.debian.net/503.html [new file with mode: 0644]
modules/roles/manifests/static_mirror.pp

diff --git a/modules/roles/files/static-htdocs/archive.debian.net/503.html b/modules/roles/files/static-htdocs/archive.debian.net/503.html
new file mode 100644 (file)
index 0000000..34ffcd5
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+   <TITLE>Welcome to archive.debian.net!</TITLE>
+</HEAD>
+<BODY>
+
+<H1>Welcome to archive.debian.net!</H1>
+
+Unfortunately, this service is not available at this time.  It is not
+known when its maintainer will be able to provide it again.
+
+<p>
+This service is <b>not</b> provided by the Debian System Administration team
+but instead by an individual member of the Debian project.
+<i>Please do not contact the DSA team with questions about this service.</i>
+
+<font size="-1">(If you are the maintainer of this service, pleaes do contact
+the DSA team if you need help restoring the service.)</font>
+
+<P>
+<HR NOSHADE />
+<FONT size="-1">Debian System Administration team</FONT>
+
+</BODY>
+</HTML>
index ef4161d..0f7a226 100644 (file)
@@ -192,4 +192,17 @@ class roles::static_mirror {
                onion::service { 'metadata.ftp-master.debian.org': ensure => "ifstatic", port => 80, target_port => 80, target_address => $onion_v4_addr }
                onion::service { 'planet.debian.org'             : ensure => "ifstatic", port => 80, target_port => 80, target_address => $onion_v4_addr }
        }
+
+       file { '/srv/static.debian.org/puppet':
+               ensure => directory,
+               mode   => '02755'
+       }
+       file { '/srv/static.debian.org/archive.debian.net':
+               ensure => directory,
+               mode   => '02755'
+       }
+       file { '/srv/static.debian.org/archive.debian.net/503.html':
+               source => 'puppet:///modules/roles/static-htdocs/archive.debian.net/503.html',
+       }
+
 }