include apache2
include apache2::ssl
- #apache2::site { 'XXX.debian.org':
- # content => template('roles/alioth_archive/XXX.debian.org.erb')
- #}
- #ssl::service { 'XXX.debian.org':
- # notify => Exec['service apache2 reload'],
- # key => true,
- #}
+ apache2::site { '020-alioth-archive.debian.org':
+ site => 'alioth-archive.debian.org',
+ content => template('roles/alioth_archive.debian.org.erb')
+ }
+ ssl::service { 'alioth-archive.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
file { '/srv/alioth-archive.debian.org':
ensure => directory,
--- /dev/null
+##
+## 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
+##
+
+
+<Macro vhost-inner-alioth-archive.debian.org>
+ ServerAdmin debian-admin@lists.debian.org
+ DocumentRoot /srv/alioth-archive.debian.org/htdocs
+
+ ErrorLog /var/log/apache2/alioth-archive.debian.org-error.log
+ CustomLog /var/log/apache2/alioth-archive.debian.org-access.log privacy
+
+ <Directory /srv/alioth-archive.debian.org/htdocs>
+ Require all granted
+ AllowOverride none
+ </Directory>
+
+ RewriteEngine On
+
+ <IfModule mod_userdir.c>
+ UserDir disabled
+ </IfModule>
+</Macro>
+
+Use common-debian-service-https-redirect * alioth-archive.debian.org
+
+<VirtualHost *:443>
+ ServerName alioth-archive.debian.org
+ Use common-debian-service-ssl alioth-archive.debian.org
+ Use common-ssl-HSTS
+ Use http-pkp-alioth-archive.debian.org
+ Use vhost-inner-alioth-archive.debian.org
+</VirtualHost>
+
+# vim:set syn=apache: