Dzahn has submitted this change and it was merged.

Change subject: bugzilla: add Apache site for static BZ version
......................................................................


bugzilla: add Apache site for static BZ version

Add an Apache site and config to the Bugzilla role for a static HTML
version of Bugzilla.

Bug: T85140
Change-Id: Id5523baf5128ed1fcbaa172c41fb9b610502cd2f
---
M manifests/role/bugzilla.pp
A modules/bugzilla/manifests/static.pp
A modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
3 files changed, 50 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/manifests/role/bugzilla.pp b/manifests/role/bugzilla.pp
index e9360af..32f9cac 100644
--- a/manifests/role/bugzilla.pp
+++ b/manifests/role/bugzilla.pp
@@ -20,5 +20,6 @@
         port  => '443',
     }
 
+    include ::bugzilla::static
 }
 
diff --git a/modules/bugzilla/manifests/static.pp 
b/modules/bugzilla/manifests/static.pp
new file mode 100644
index 0000000..cca3008
--- /dev/null
+++ b/modules/bugzilla/manifests/static.pp
@@ -0,0 +1,17 @@
+# sets up a static HTML version of the old Bugzilla install
+# T85140
+class bugzilla::static {
+
+    file { '/srv/org/wikimedia/static-bugzilla':
+            ensure => directory,
+            owner  => 'root',
+            group  => 'root',
+            mode   => '0755';
+    }
+
+    apache::site { 'static-bugzilla.wikimedia.org':
+        content  => 
template('bugzilla/apache/static-bugzilla.wikimedia.org.erb'),
+        priority => 20,
+    }
+
+}
diff --git 
a/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb 
b/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
new file mode 100644
index 0000000..77458da
--- /dev/null
+++ b/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
@@ -0,0 +1,32 @@
+# Apache config for static-bugzilla.wikimedia.org
+# ! THIS FILE IS MANAGED BY PUPPET !
+
+<VirtualHost *:80>
+    ServerAdmin [email protected]
+    ServerName static-bugzilla.wikimedia.org
+    DocumentRoot /srv/org/wikimedia/static-bugzilla
+
+    <Directory />
+        Options FollowSymLinks
+        AllowOverride None
+    </Directory>
+
+    <Directory /srv/org/wikimedia/static-bugzilla>
+        Options Indexes FollowSymLinks MultiViews
+        AllowOverride None
+        Order allow,deny
+        Deny from env=nobots
+        allow from all
+    </Directory>
+
+ErrorLog /var/log/apache2/error.log
+
+# Possible values include: debug, info, notice, warn, error, crit,
+# alert, emerg.
+LogLevel warn
+
+CustomLog /var/log/apache2/access.log combined
+ServerSignature On
+
+</VirtualHost>
+

-- 
To view, visit https://gerrit.wikimedia.org/r/183758
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id5523baf5128ed1fcbaa172c41fb9b610502cd2f
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: John F. Lewis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to