Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge freephile:34.x into enterprisemediawiki:34.x #1253

Open
wants to merge 351 commits into
base: 34.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
ab1d9b1
Don't overwrite secrt files
jamesmontalvo3 Jun 4, 2019
8ba1353
file not directory
jamesmontalvo3 Jun 4, 2019
2ef8454
Secret directory 775 in getmeza.sh, too
jamesmontalvo3 Jun 4, 2019
7a17fa1
Merge pull request #1180 from enterprisemediawiki/secret-perms
jamesmontalvo3 Jun 4, 2019
d6ddb60
Don't use 'meza' command for dev-networking
jamesmontalvo3 Jun 4, 2019
077e6bc
Add lock_timeout to yum/package modules to fix Ansible 2.8 issue
jamesmontalvo3 Jun 4, 2019
35f51a4
Merge pull request #1182 from enterprisemediawiki/yum-lock-timeout
jamesmontalvo3 Jun 4, 2019
051d1db
Merge pull request #1181 from enterprisemediawiki/dev-networking
jamesmontalvo3 Jun 4, 2019
34e12f0
31.8.0 release
jamesmontalvo3 Jun 4, 2019
13e0c63
Merge pull request #1183 from enterprisemediawiki/31.8.0-release
jamesmontalvo3 Jun 4, 2019
ef09660
Cherry picks skip_saml CIDR notation support changes from 32.x
GarrettGeorge Jun 5, 2019
f71fe08
Update MezaCoreExtensions.yml
revansx Jun 5, 2019
eb1cab6
Update MezaCoreExtensions.yml
revansx Jun 5, 2019
80177f4
push-backup: Fix bad use of 'notify' tag; Add servers to exclude
jamesmontalvo3 Jun 6, 2019
2803905
Specify /opt/simplesamlphp owner/group/mode
jamesmontalvo3 Jun 6, 2019
8f14b8f
Recursively apply owner/perms to simplesaml and mediawiki
jamesmontalvo3 Jun 6, 2019
8305911
Merge pull request #1187 from enterprisemediawiki/push-backup-fix
jamesmontalvo3 Jun 6, 2019
597a49f
Ensure MediaWiki and WikiBlender ownership after all operations
jamesmontalvo3 Jun 6, 2019
bd9c6c6
Merge pull request #1188 from enterprisemediawiki/saml-permissions-fix
jamesmontalvo3 Jun 6, 2019
01a171a
31.8.1 release
jamesmontalvo3 Jun 6, 2019
4b8b61e
Merge pull request #1192 from enterprisemediawiki/31.8.1-release
jamesmontalvo3 Jun 7, 2019
25b8013
Make pushed backups in form *push.sql and use them first; more debug
jamesmontalvo3 Jun 11, 2019
93d5a0d
Improve logic for how to grab SQL file from backup
jamesmontalvo3 Jun 11, 2019
d5b31d9
Merge pull request #1194 from enterprisemediawiki/push-backup-fix2
jamesmontalvo3 Jun 11, 2019
94c79c1
Fix bad variable
jamesmontalvo3 Jun 11, 2019
eecf7b8
Merge pull request #1195 from jamesmontalvo3/push-backup-fix3
jamesmontalvo3 Jun 11, 2019
ea7e7f6
Fix bad owner/group on /opt/data-meza
jamesmontalvo3 Jun 12, 2019
8093118
Make update.php write to a log
jamesmontalvo3 Jun 12, 2019
8e4fc1d
Merge pull request #1199 from jamesmontalvo3/data-meza-perm-fix
jamesmontalvo3 Jun 12, 2019
c5de341
Merge pull request #1200 from jamesmontalvo3/log-update.php
jamesmontalvo3 Jun 12, 2019
fb66fa3
Allow specifying rules for what to gzip in backups-cleanup
jamesmontalvo3 Jun 18, 2019
aba32be
Merge pull request #1202 from jamesmontalvo3/backups-cleanup-gzip-rules
jamesmontalvo3 Jun 18, 2019
ddb9fe2
Add refreshLinks script that handles memory leaks
jamesmontalvo3 Jun 24, 2019
dbdfed8
Merge pull request #1205 from jamesmontalvo3/refresh-links-script
jamesmontalvo3 Jun 24, 2019
8b96dc1
Add --no-dev to MW composer commands
jamesmontalvo3 Jun 26, 2019
2a49a3f
Trying deleting composer.lock before composer operations
jamesmontalvo3 Jun 27, 2019
b1a140e
Try envoking composer directly
jamesmontalvo3 Jun 27, 2019
dc7c184
WIP
jamesmontalvo3 Jun 27, 2019
0a9ca06
Add error handling to update.php (show errors)
jamesmontalvo3 Jun 27, 2019
c7c510e
Mount local meza on docker tests controller containers
jamesmontalvo3 Jun 27, 2019
deca0bb
Use ansible composer module again
jamesmontalvo3 Jun 27, 2019
16833fd
Remove commented out non-ansible-module composer tasks
jamesmontalvo3 Jun 27, 2019
dff5c22
Merge pull request #1206 from jamesmontalvo3/composer-no-dev
jamesmontalvo3 Jun 27, 2019
6722cdc
Make meza-ansible:apache own deploy lock file, not root
jamesmontalvo3 Jun 27, 2019
71377b3
Merge pull request #1208 from jamesmontalvo3/own-lock
jamesmontalvo3 Jun 27, 2019
58744c8
31.8.2 release
jamesmontalvo3 Jun 27, 2019
401fbfe
Merge pull request #1209 from jamesmontalvo3/31.8.2-release
jamesmontalvo3 Jun 27, 2019
5f8bbca
Merge pull request #1185 from revansx/patch-1
jamesmontalvo3 Jul 4, 2019
a5af7c0
Make Extension:MezaExt track 'master' while TransferPages in development
jamesmontalvo3 Jul 4, 2019
0eda7c9
Merge pull request #1214 from jamesmontalvo3/meza-ext-master
jamesmontalvo3 Jul 4, 2019
44a437c
Merge pull request #1213 from jamesmontalvo3/skip-saml-cidr-take3
jamesmontalvo3 Jul 4, 2019
2a8c3d9
Bump MW to 1.31.2; remove pear/net_smtp from meza (part of MW now)
jamesmontalvo3 Jul 5, 2019
72b843d
Merge pull request #1215 from jamesmontalvo3/mw1.31.2
jamesmontalvo3 Jul 5, 2019
2387b4a
Check if apache group exists before setting as group for lock file; f…
jamesmontalvo3 Jul 8, 2019
f4440b5
Merge pull request #1217 from jamesmontalvo3/vagrant-fix2
jamesmontalvo3 Jul 8, 2019
53b8352
Bump SMW to 3.0.2
jamesmontalvo3 Aug 7, 2019
3021b20
Merge pull request #1223 from enterprisemediawiki/smw-3.0.2
jamesmontalvo3 Aug 7, 2019
4628953
Allow specifying refspec in MW git repos
jamesmontalvo3 Aug 8, 2019
62709f4
Merge pull request #1224 from jamesmontalvo3/mw-refspec
jamesmontalvo3 Aug 8, 2019
f655f6b
Allow specifying PHP max upload size in config
jamesmontalvo3 Aug 8, 2019
1656785
Merge pull request #1225 from jamesmontalvo3/php-upload-size
jamesmontalvo3 Aug 9, 2019
c5f4d32
Updating Data Transfer to fix import bug
V-Brooks Aug 23, 2019
bc2808a
Merge pull request #1229 from enterprisemediawiki/Data-Transfer-update
krisfield Aug 23, 2019
1f13007
Add /opt/data-meza/mw-temp that apache can modify
jamesmontalvo3 Aug 29, 2019
6225b58
Merge pull request #1230 from jamesmontalvo3/mw-temp-dir
jamesmontalvo3 Sep 16, 2019
a555114
Add function to wait for Internet connection.
XP1 Sep 23, 2019
1f78659
Merge pull request #1234 from XP1/patch-1
jamesmontalvo3 Sep 24, 2019
d1b17a9
Add a calendar interface to add and edit events using the Full…
V-Brooks Oct 30, 2019
e1ced43
Possible solution to issue #1237 according to this forum:
jamesmontalvo3 Oct 30, 2019
892fb1f
With firewall-offline-cmd no --permanent option, prob because if offl…
jamesmontalvo3 Oct 30, 2019
f9cc3a6
Travis saying Docker not running; perhaps start firewall after offlin…
jamesmontalvo3 Oct 30, 2019
74a7697
Try manually restarting firewalld
jamesmontalvo3 Oct 30, 2019
93b6087
Disable firewalld on travis tests
jamesmontalvo3 Oct 30, 2019
121de9d
Add --no-firewall deploy option
jamesmontalvo3 Oct 31, 2019
9dde2d8
Try Parsoid 0.10.0
jamesmontalvo3 Nov 2, 2019
5231c5c
Merge pull request #1238 from jamesmontalvo3/iss1237
jamesmontalvo3 Nov 3, 2019
89b69d9
Merge branch 'master' into updated-pageforms-to-calendar-commit
jamesmontalvo3 Nov 3, 2019
084daee
Merge pull request #1236 from enterprisemediawiki/updated-pageforms-t…
jamesmontalvo3 Nov 3, 2019
fe78845
fix deprecated ansible syntax, ref c06fa04c7ddd0ea99c6e92b6f87ff89fd5…
darenwelsh Nov 23, 2019
63716a8
fix more flag syntax
darenwelsh Nov 23, 2019
4d18daa
yaml syntax fix
darenwelsh Nov 23, 2019
c8fa14c
Merge pull request #1241 from enterprisemediawiki/hotfix
darenwelsh Nov 23, 2019
8812f21
31.9.0 release
jamesmontalvo3 Dec 4, 2019
bbcda66
Merge pull request #1242 from enterprisemediawiki/31.9.0-release
jamesmontalvo3 Dec 4, 2019
44f2d2c
Python 2/3 compatibility
Jan 10, 2020
febc041
fix SSH under Debian/Ubuntu
Jan 13, 2020
86a9b48
rewrites for pretty URLs
Jan 13, 2020
78cc2e5
fix: add missing colon
Jan 14, 2020
2e19806
Add compression (mod deflate)
Jan 14, 2020
3838ace
Merge pull request #1245 from freephile/fixIterItems
darenwelsh Feb 6, 2020
2963880
ugrade php to 7.2 and elasticsearch to 6.x
Mar 30, 2020
313c350
Upgrade elasticsearch to 6.x
Apr 3, 2020
c70407c
Update SMW to 3.1
Apr 3, 2020
ecb7158
MCrypt for PHP is now just named php-mcrypt
Apr 3, 2020
19ecc35
Do not upgrade the metastore before it exists.
Apr 3, 2020
7eb618c
mcrypt is not available for PHP7.2
Apr 9, 2020
0575efe
Use master for ApprovedRevs
Apr 10, 2020
11b7ceb
enable LDAP extension module
darenwelsh Apr 13, 2020
15c6f14
remove php 5.x packages, add LDAP PHP IUS
darenwelsh Apr 13, 2020
74cca52
Merge pull request #2 from darenwelsh/patch-5
Apr 13, 2020
60c221c
Remove mcrypt package - no longer used
Apr 14, 2020
8c71112
Python3 compat. Replace iteritems with items
Apr 14, 2020
c018087
Java 1.8.0 OpenJDK is for RedHat only
Apr 14, 2020
54ec3f6
New SMW task to setupStore.php
Apr 14, 2020
9afe1bb
Implement certbot for SSL
Apr 16, 2020
f224b84
Don't intercept Certbot requests
Apr 16, 2020
dc2b7d6
Fix #748 Add Certbot
Apr 16, 2020
cb6616e
Check for existing certs before generation
Apr 17, 2020
20f7012
Add deploy hook (also used for renew)
Apr 17, 2020
63ed401
comment several broken extensions
Apr 17, 2020
ea68dc5
Do not remove meza.pem
Apr 18, 2020
ce46632
Add when: conditions for writing deploy hook
Apr 18, 2020
94afde4
Remove extraneous comment
Apr 18, 2020
ae6506e
Use Certbot for SSL when enable_certbot
Apr 18, 2020
db2f92f
simplify "when" conditional
Apr 18, 2020
06bda3c
Enable variable wgServer based on HTTP_HOST
Apr 18, 2020
cd368e4
define wgServer in commandline mode
Apr 20, 2020
37c82fb
allow for subdomain-based wiki identification
Apr 20, 2020
3ff0feb
fix certbot deploy hook
Apr 21, 2020
ce214e6
Make SSHD / SFTP config vary on OS
Apr 21, 2020
a859d4e
Add --single-transaction --quick to mysqldump
Apr 22, 2020
62c2ef1
Add pidfile which is required for apache2buddy.pl
Apr 23, 2020
276aa8c
Run composer update before install (for upgrades)
Apr 23, 2020
e34929c
setup variable for subdomain-based wikis
Apr 24, 2020
aea420c
remove problematic rule for wikis named "w"
Apr 24, 2020
78bab31
Make rsyslog available on Debian
Apr 24, 2020
cf54c6a
update Python3 to be Python3.6 and check for pip3 before creating sym…
Apr 24, 2020
c65527c
set Certbot to false by default
Apr 27, 2020
bdafbe5
Restore generation of Meza cert
Apr 28, 2020
14dad0d
Feature: Add m_ignore_local_mods
Apr 28, 2020
f22997c
Add check for clean certs directory
Apr 28, 2020
18da900
Add config comment for PageForms
Apr 28, 2020
c10774d
Fix assertion test
Apr 28, 2020
b732030
Fix the fix
Apr 28, 2020
dfca160
Fix Deprecation warning: filter bare variable to boolean
Apr 28, 2020
d85a722
Disable Upload Wizard in favor of traditional form.
Apr 29, 2020
05cb438
Create a symbolic link named python3 pointed to python3.5
Apr 29, 2020
bda63df
Fix script location to be variable based on m_mediawiki instead of ha…
Apr 30, 2020
a018914
switch to Buster from Stretch for Debian
Apr 30, 2020
6ef3b47
Add certbot tag for include/exclude
May 7, 2020
8b5428d
New feature: GoAccess Real-time Web Analytics
May 7, 2020
031227e
Update MezaCoreExtensions.yml
revansx May 9, 2020
5050eec
Merge pull request #5 from revansx/patch-9
May 10, 2020
d006244
Drop support for TLS1.0 and TLS1.1
May 18, 2020
317705f
Fix errors in certbot renewal script
May 18, 2020
a32e09f
make Tokyo Cabinet Disk Support optional since it's not available? in…
May 20, 2020
ddd42cf
update IUS installation
May 21, 2020
e862dd1
Fix ImageMagick (convert) path
May 21, 2020
5e29e70
remove Python / Pip symlinks
May 22, 2020
8e47150
Update URL to IUS RPM
afoster Jun 1, 2020
f701201
Add second IUS repo and GPG key
jamesmontalvo3 Jun 5, 2020
10bc863
Fix typo (backslash)
jamesmontalvo3 Jun 5, 2020
01c04bb
Bump to PHP 7.2
jamesmontalvo3 Jun 5, 2020
c50be32
Remove mcrypt extension no longer available after PHP 7.1
jamesmontalvo3 Jun 5, 2020
bbe0009
Remove symlink creation for pip3; IUS appears to do that automaticall…
jamesmontalvo3 Jun 5, 2020
4e15898
Merge pull request #1255 from jamesmontalvo3/fix-ius
jamesmontalvo3 Jun 5, 2020
7c67b85
31.10.0 release
jamesmontalvo3 Jun 5, 2020
1424896
Merge pull request #1256 from jamesmontalvo3/31.10.0-release
jamesmontalvo3 Jun 5, 2020
e048a7b
Ensure PEAR channel up-to-date
jamesmontalvo3 Jun 5, 2020
601dedc
Merge pull request #1257 from jamesmontalvo3/pear-channel-fix
jamesmontalvo3 Jun 5, 2020
4606fa6
31.10.1 release
jamesmontalvo3 Jun 5, 2020
4a3beb6
Merge pull request #1258 from jamesmontalvo3/31.10.1-release
jamesmontalvo3 Jun 5, 2020
83d4bd6
Enable testing in GitHub Actions and GitLab CI
jamesmontalvo3 Jun 7, 2020
4cb414f
Don't run tests twice for PRs
jamesmontalvo3 Jun 8, 2020
b5ce5e3
GitHub Actions fail-fast-->false, to prevent one failure from cancell…
jamesmontalvo3 Jun 8, 2020
c4d799c
Merge pull request #1260 from enterprisemediawiki/test-everywhere
jamesmontalvo3 Jun 8, 2020
62886be
Build test container 'base' on pushes to 'docker-build' branch
jamesmontalvo3 Jun 10, 2020
f01ae65
Add later test images
jamesmontalvo3 Jun 10, 2020
11dc3e8
Make Dockerfiles pull FROM correct base image
jamesmontalvo3 Jun 10, 2020
57e8469
Need --skip-conn-check on getmeza.sh within docker; temporarily skip …
jamesmontalvo3 Jun 10, 2020
8a22485
Remove secret.yml encryption per #1175
jamesmontalvo3 Jun 10, 2020
591df68
Point tests to new Docker images built from this repo; only run build…
jamesmontalvo3 Jun 10, 2020
b60bda0
Merge pull request #1262 from enterprisemediawiki/docker-build
jamesmontalvo3 Jun 10, 2020
65aa596
add ldap module (#1261)
darenwelsh Jun 12, 2020
4160ae3
Bump MediaWiki to 1.31.7 (#1267)
jamesmontalvo3 Jun 12, 2020
76e1058
Install Java on all platforms
Jun 12, 2020
e6e1afb
initial workflow
Jun 15, 2020
79711f0
Merge pull request #9 from freephile/ci
Jun 15, 2020
3bee7fc
fixing workflow path
Jun 15, 2020
38d21c4
Replace action to use git clone
Jun 15, 2020
2e36cdc
Add sudo to commands
Jun 15, 2020
5f13b89
Trying new workflow
Jun 16, 2020
2f59499
New path
Jun 16, 2020
fd5ee21
elementary first steps
Jun 16, 2020
0bc11f7
try to get files in place
Jun 17, 2020
a31486c
Try sleeping
Jun 17, 2020
13a486f
access github variable
Jun 17, 2020
c5bf6af
Make the directory
Jun 17, 2020
21291d9
forgot the dollar
Jun 17, 2020
29e14ac
cp instead of mv which breaks cleanup
Jun 17, 2020
a4e3ba7
Can I get a deploy?
Jun 17, 2020
66131e2
Run getmeza with sudo -H to avoid cache warnings
Jun 17, 2020
81dd139
Setup env then deploy
Jun 17, 2020
60f1e56
Fix typo
Jun 17, 2020
97ecbf0
Print hosts file as a 'test'
Jun 17, 2020
f9d3cad
sudo or not to do
Jun 17, 2020
ff88ffd
Fix problem with duplicate NTP install
Jun 17, 2020
7f006d7
Fix failure for non-existant config directory
Jun 17, 2020
4ab3715
Fix warning for python-apt which is auto-installed by runner
Jun 17, 2020
e6ff64e
Fix syntax
Jun 17, 2020
b6f426a
Fix issues with "state" on package installation
Jun 17, 2020
0be5c60
Remove MySQL from runner
Jun 17, 2020
4c91167
remove --purge instead of erase
Jun 17, 2020
a6fac2c
be extremely verbose
Jun 17, 2020
9ec8b27
Permisson fix for HaProxy
Jun 17, 2020
1aeedbc
Fix permissions for certificate directory and certs
Jun 17, 2020
2637685
Disable GoAccess by default
Jun 17, 2020
d7319d9
wtf haproxy?
Jun 17, 2020
c9d9817
Aggressive debugging on haproxy
Jun 18, 2020
77946bd
correct haproxy.cfg and variable name
Jun 18, 2020
f46d5d1
skip haproxy service restart
Jun 18, 2020
d0171fe
Add Apache Prefork settings
Jul 3, 2020
ec38960
Add IPv6 bind if available to HAProxy
Jul 3, 2020
1402b53
Add IPv6 bind if available to HAProxy
Jul 3, 2020
18690e7
Fixes Issue 16 - change X-Forwarded-Proto headers
Jul 3, 2020
cbeda3a
Add port for Kibana
Sep 1, 2020
7952ace
specify v6 for elasticsearch; notify handler on install
Sep 5, 2020
12cd291
remove duplicate task
Sep 5, 2020
c351020
correct JAVA_HOME
Sep 5, 2020
676d610
Undo f46d5d120997f2e48a4c56c8694f32cba87c0741
Sep 5, 2020
41c9eed
Revert "Add port for Kibana"
Sep 6, 2020
9da54b0
Add back preventative measure to protect DOS
Sep 6, 2020
e4e2de9
Add back preventative measure to protect DOS
Sep 6, 2020
48dc6bf
add symlinks to "w"
Sep 6, 2020
b0b5867
comment for FamilySearch
Sep 6, 2020
18751f3
simplify and augment the wikiId handling
Sep 6, 2020
0a1f6e4
remove incorrect "ignore errors" from HaProxy
Sep 6, 2020
c7bd187
Merge branch '34.x' of https://github.com/freephile/meza into 34.x
Sep 6, 2020
4f65f03
fix logig for wikiId
Sep 6, 2020
5e7e1fd
bump version of Semantic Result Formats from ~3.1 to ~3.2
Sep 21, 2020
2e669a6
Bump Maps from 7.17.2 to ~7.0
Sep 21, 2020
f1232a7
fix comment about excel support
Sep 21, 2020
c601dd3
Add prefix to wgScriptPath if defined
Sep 22, 2020
49da6d4
Make .htaccess work with m_mediawiki_prefix_dir
Sep 23, 2020
49209ac
Make $wgUseRCPatrol configurable
Sep 23, 2020
0b14fdf
Switch InputBox to "master"
Sep 28, 2020
02695c1
Set better defaults for Apache
Sep 29, 2020
2fa84cd
Bump Wiretap to master for 1.34 and 1.35 compatibility
Sep 29, 2020
be1c719
add enableSemantics condition to setupStore.php
Sep 30, 2020
bf2a753
Enterprise security teams are demanding that 3DES ciphers be disabled…
Oct 8, 2020
9dadd4c
Merge branch 'main' into 34.x using strategy 'ours'
Oct 15, 2020
1ccc89f
Update README with project rename
Oct 15, 2020
74d5099
Remove reference to master
Oct 15, 2020
c038ff5
Change Apache log format to Combined
Oct 25, 2020
586809a
Merge branch 'featureApacheCombinedLogFormat' into 34.x
Oct 25, 2020
c91ee6c
Bugfix: can't use syntax with CentOS/RedHat
Oct 25, 2020
0c77aae
Fix path for symlinks
Oct 25, 2020
ec0f9a6
Make composer-merge-plugin work by setting version; fixes issue #28
Nov 16, 2020
0c2227e
Make HAProxy work with no IPv6; fixes issue #18
Nov 16, 2020
e61ab45
Added file checks for Apache log symbolic links
Nov 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
"on":
# Trigger the workflow on pushes to these branches
push:
branches:
- master
- 34.x
jobs:
one:
# ubuntu-18.04
# runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

# GitHub Runners include a LOT of software by default
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
- name: Uninstall MySQL so we can use MariaDB
run: sudo apt-get remove --purge mysql-server

- name: Make target directory for sources
run: mkdir -p /opt/meza

- name: Copy code
run: sudo cp -r ${{ github.workspace }} /opt/

- name: Install prerequisites
run: sudo apt install -y git ansible

# - name: Clone Meza
# run: sudo git clone https://github.com/freephile/meza /opt/meza

- name: Run "getmeza with sudo -H to avoid cache warnings"
run: sudo -H bash /opt/meza/src/scripts/getmeza.sh

- name: Setup the monolith environment
run: sudo meza setup env monolith --fqdn="127.0.0.1" --db_pass=1234 --private_net_zone=public

# The --no-firewall option does not exist
- name: Deploy Meza
run: sudo meza deploy monolith -vvv

- name: Print hosts file as a rudimentary "test"
run: cat /opt/conf-meza/secret/monolith/hosts
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# meza
# QualityBox

[![Build Status](https://travis-ci.org/enterprisemediawiki/meza.svg?branch=master)](https://travis-ci.org/enterprisemediawiki/meza)
[![Code Climate](https://codeclimate.com/github/enterprisemediawiki/meza/badges/gpa.svg)](https://codeclimate.com/github/enterprisemediawiki/meza)
Setup an enterprise MediaWiki server with **simple commands**. Put all components on a single monolithic server or split them out over many. Run a single database or have replicas. Deploy to multiple environments. Run backups. Do it all using the `meza` command. Run `meza --help` for more info.

<img src="https://raw.githubusercontent.com/enterprisemediawiki/meza/master/manual/commands.gif">
> Note: This project is a fork of the original Meza project developed at NASA. We still use the same 'meza' command internally but are gradually updating the system to be consistent with the QualityBox (or qb) brand.

Setup an enterprise MediaWiki server with **simple commands**. Put all components on a single monolithic server or split them out over many. Run a solitary master database or have replicas. Deploy to multiple environments. Run backups. Do it all using the `meza` command. Run `meza --help` for more info.
## Why QualityBox?

## Why meza?

Standard MediaWiki is easy to install, but increasingly its newer and better features are contained within extensions that are more complicated. Additionally, they may be particularly difficult to install on Enterprise Linux derivatives. This project aims to make these features (VisualEditor, CirrusSearch, etc) easy to *install, backup, reconfigure, and maintain* in a robust and well-tested way.
Standard MediaWiki is easy to install, but increasingly its newer and better features are contained within extensions that are more complicated. Additionally, they may be particularly difficult to install on Enterprise Linux derivatives. This project aims to make these features (VisualEditor, CirrusSearch, etc) easy to *install, backup, reconfigure, and maintain* in a robust and well-tested way. Furthermore, we aim to package all the extra security, tools and configuration that enable scalable PUBLIC wikis to thrive in a hostile Internet.

## Requirements

1. CentOS 7 or RHEL 7 (for now, with Debian support in the works)
2. Minimal install: Attempting to install it on a server with many other things already installed may not work properly due to conflicts.
1. CentOS 7 RHEL 7 or Debian 10

## Install and usage

Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ elsif configuration.key?("box_os")
box_os = configuration["box_os"]

if box_os == "debian"
baseBox = "debian/contrib-stretch64"
baseBox = "debian/contrib-buster64"
elsif box_os == "centos"
baseBox = "bento/centos-7.4"
else
Expand Down
41 changes: 3 additions & 38 deletions config/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,11 @@ package_firewall: ufw
package_openssh_client: openssh-client
package_cron: cron
package_apache: apache2

# RedHat install has a lot of php/apache dependencies, but these may be carry-overs
# from when Meza installed Apache and PHP from source. They probably are not needed
# anymore.
package_php_apache_deps: []
# Did not immediately find a replacement package in Debian for these RH packages
# - zlib-devel
# - sqlite-devel
# - bzip2-devel
# - pcre-devel
# - libXpm-devel
# - gmp-devel
# - t1lib-devel
# - aspell-devel
# - libvpx-devel
# - readline-devel
# - libmcrypt-devel
# - pam-devel
# - m4
# - xz-libs
# These are either named the same in RE vs Debian, or were easily found
# - libcurl4-openssl-dev
# - libssl-dev
# - libxml2-dev
# - libicu-dev
# - libjpeg-dev
# - libpng-dev
# - libfreetype6-dev
# - libtidy-dev
# - sendmail
# - sendmail-cf
# - mariadb-common
# These are required to install PHP from source.
# - libxpm-dev
# - libmysqlclient-dev
# - libpq-dev
# - libldap2-dev
# - libxslt-dev
# - libldb-dev

# Use Tokyo Cabinet for on-disk support if you know your distro supports it
# override with goaccess-tcb
package_goaccess: goaccess
package_java: "default-jre"
package_python3: python3
package_python3_pip: python3-pip
Expand Down
68 changes: 36 additions & 32 deletions config/MezaCoreExtensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ list:

- name: Semantic MediaWiki
composer: "mediawiki/semantic-media-wiki"
version: "3.0.0"
version: "~3.1"
config: |
// Enable Semantic MediaWiki semantics
enableSemantics( $wikiId );
Expand All @@ -23,11 +23,11 @@ list:
// created them, and thus they effectively don't replicate). Picking
// DB_SLAVE since temporary tables are effectively a read-action since
// they are used only for making more efficient queries.
$smwgLocalConnectionConf['mw.db.queryengine'] = [ 'read' => DB_SLAVE, 'write' => DB_SLAVE ];
$smwgLocalConnectionConf['mw.db.queryengine'] = [ 'read' => DB_REPLICA, 'write' => DB_REPLICA ];

- name: Semantic Result Formats
composer: "mediawiki/semantic-result-formats"
version: "3.0.0"
version: "~3.2"
config: |
// In SRF 3.0+ you need to do this, too:
wfLoadExtension( 'SemanticResultFormats' );
Expand All @@ -38,18 +38,22 @@ list:
// $srfgFormats[] = 'googlebar';
// $srfgFormats[] = 'googlepie';

// Disabled until the proper dependencies are added (PHPExcel I think)
// Disabled until the proper dependencies are added (the phpspreadsheet library from phpoffice)
// $srfgFormats[] = 'excel';

// Enables the "filtered" format. Where do we use this?
$srfgFormats[] = 'filtered';

// Disabled due to some issue on FOD wikis. Confirm, reenable if possible
// $srfgFormats[] = 'exhibit';


# Allows for the display of more than one SMW inline query in one results display set.
- name: SemanticCompoundQueries
composer: "mediawiki/semantic-compound-queries"
version: "1.2.0"
version: "~2.1"
config: |
wfLoadExtension( 'SemanticCompoundQueries' );

- name: Scribunto
repo: https://github.com/wikimedia/mediawiki-extensions-Scribunto.git
version: "{{ mediawiki_default_branch }}"
Expand All @@ -59,22 +63,22 @@ list:
$wgScribuntoUseCodeEditor = true;
- name: "Semantic Scribunto"
composer: "mediawiki/semantic-scribunto"
version: 2.0.0
version: ~2.1
config: |
wfLoadExtension( 'SemanticScribunto' );
- name: SubPageList
composer: "mediawiki/sub-page-list"
version: "1.5.0"
version: "1.6.1"
- name: Maps
composer: "mediawiki/maps"
version: "6.0.3"
version: "~7.0"
config: |
// In Maps 6.0+ you need to also load the extension
wfLoadExtension( 'Maps' );

- name: DisplayTitle
repo: https://github.com/wikimedia/mediawiki-extensions-DisplayTitle.git
version: tags/1.2
version: "{{ mediawiki_default_branch }}"


#
Expand All @@ -89,7 +93,7 @@ list:
$wgPFEnableStringFunctions = true;
- name: ExternalData
repo: https://github.com/wikimedia/mediawiki-extensions-ExternalData.git
version: "{{ mediawiki_default_branch }}"
version: "master"
- name: LabeledSectionTransclusion
repo: https://github.com/wikimedia/mediawiki-extensions-LabeledSectionTransclusion.git
version: "{{ mediawiki_default_branch }}"
Expand All @@ -106,8 +110,10 @@ list:
version: "{{ mediawiki_default_branch }}"
- name: PageForms
repo: https://github.com/wikimedia/mediawiki-extensions-PageForms.git
# commit includes spreadsheet sorting which didn't make PageForms 4.4.1
version: "730390a31a56c001af83948af1eefc5174abbe06"
version: "master"
config: |
// If enabled all "red links" will bring up a form chooser
$wgPageFormsLinkAllRedLinksToForms = false;
- name: DismissableSiteNotice
repo: https://github.com/wikimedia/mediawiki-extensions-DismissableSiteNotice.git
version: "{{ mediawiki_default_branch }}"
Expand All @@ -130,10 +136,10 @@ list:
version: "{{ mediawiki_default_branch }}"
- name: InputBox
repo: https://github.com/wikimedia/mediawiki-extensions-InputBox.git
version: "{{ mediawiki_default_branch }}"
version: "master"
- name: ReplaceText
repo: https://github.com/wikimedia/mediawiki-extensions-ReplaceText.git
version: tags/1.4
version: "master"
- name: Interwiki
repo: https://github.com/wikimedia/mediawiki-extensions-Interwiki.git
version: "{{ mediawiki_default_branch }}"
Expand Down Expand Up @@ -222,11 +228,11 @@ list:
$wgPageShowWatchingUsers = true;
- name: SemanticInternalObjects
repo: https://github.com/wikimedia/mediawiki-extensions-SemanticInternalObjects.git
version: "{{ mediawiki_default_branch }}"
version: "master"
legacy_load: true
- name: SemanticDrilldown
repo: https://github.com/wikimedia/mediawiki-extensions-SemanticDrilldown.git
version: "{{ mediawiki_default_branch }}"
version: "master"
legacy_load: true
- name: Arrays
repo: https://github.com/wikimedia/mediawiki-extensions-Arrays.git
Expand All @@ -238,8 +244,7 @@ list:
legacy_load: true
- name: AdminLinks
repo: https://github.com/wikimedia/mediawiki-extensions-AdminLinks.git
version: "{{ mediawiki_default_branch }}"
legacy_load: true
version: "master"
config: |
$wgGroupPermissions['sysop']['adminlinks'] = true;
- name: BatchUserRights
Expand All @@ -251,16 +256,15 @@ list:
config: |
$wgHeaderTabsEditTabLink = false;
$wgHeaderTabsRenderSingleTab = true;
- name: CopyWatchers
repo: https://github.com/jamesmontalvo3/MediaWiki-CopyWatchers.git
version: tags/0.10.0
# - name: CopyWatchers
# repo: https://github.com/jamesmontalvo3/MediaWiki-CopyWatchers.git
# version: tags/0.10.0
- name: Wiretap
repo: https://github.com/enterprisemediawiki/Wiretap.git
version: tags/0.1.0
version: master
- name: ApprovedRevs
repo: https://github.com/wikimedia/mediawiki-extensions-ApprovedRevs.git
# Use this commit until a release tag for v1.0 is created
version: tags/1.0
version: master
config: |
$egApprovedRevsAutomaticApprovals = false;
- name: ImagesLoaded
Expand All @@ -269,11 +273,11 @@ list:
- name: MasonryMainPage
repo: https://github.com/enterprisemediawiki/MasonryMainPage.git
version: tags/0.3.0
- name: WatchAnalytics
repo: https://github.com/enterprisemediawiki/WatchAnalytics.git
version: tags/3.1.1
config: |
$egPendingReviewsEmphasizeDays = 10; // makes Pending Reviews shake after X days
# - name: WatchAnalytics
# repo: https://github.com/enterprisemediawiki/WatchAnalytics.git
# version: tags/3.1.1
# config: |
# $egPendingReviewsEmphasizeDays = 10; // makes Pending Reviews shake after X days
- name: Variables
repo: https://github.com/wikimedia/mediawiki-extensions-Variables.git
version: "{{ mediawiki_default_branch }}"
Expand Down Expand Up @@ -328,7 +332,7 @@ list:
$wgApiFrameOptions = 'SAMEORIGIN';

// Use UploadWizard by default in navigation bar
$wgUploadNavigationUrl = "$wgScriptPath/index.php/Special:UploadWizard";
// $wgUploadNavigationUrl = "$wgScriptPath/index.php/Special:UploadWizard";
$wgUploadWizardConfig = array(
'debug' => false,
'autoCategory' => 'Uploaded with UploadWizard',
Expand Down Expand Up @@ -369,7 +373,7 @@ list:

- name: DataTransfer
repo: https://github.com/wikimedia/mediawiki-extensions-DataTransfer.git
version: "{{ mediawiki_default_branch }}"
version: "master"
- name: PageImporter
repo: https://github.com/enterprisemediawiki/PageImporter.git
version: tags/0.1.0
Expand Down
1 change: 1 addition & 0 deletions config/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ package_php_apache_deps:
- m4
- xz-libs
- mariadb-libs
package_goaccess: goaccess
package_java: java-1.8.0-openjdk
package_python3: python35u
package_python3_pip: python35u-pip
Expand Down
24 changes: 15 additions & 9 deletions config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ m_meza: /opt/meza
# production being as performant and secure as possible
# development being less secure and providing optional features useful for dev
m_use_production_settings: True
# default (False) will fail on local mediawiki extension modifcations
# Overriding can be useful to add to public.yml for development environments
m_ignore_local_mods: False
m_use_subdomains: false

# config dir
m_config_core: /opt/meza/config
Expand Down Expand Up @@ -101,6 +105,11 @@ wiki_id_redirects: {}

m_force_debug: false

# if you enable certbot, make sure you add m_httpd_server_admin in your public.yml
enable_certbot: false

enable_goaccess: false

enable_wiki_emails: true

enable_haproxy_stats: false
Expand Down Expand Up @@ -151,23 +160,23 @@ m_meza_sudeoers_file: "/etc/sudoers.d/meza-ansible"
#

# Version of MediaWiki core
mediawiki_version: "REL1_32"
mediawiki_version: "REL1_34"

# Branch to use on many extensions extensions and skins
mediawiki_default_branch: "REL1_32"
mediawiki_default_branch: "REL1_34"

# PHP version
php_ius_version: "php71u"
php_debian_version: "7.1"
php_ius_version: "php72u"
php_debian_version: "7.2"

# Parsoid version
# e6b708 is commit on 16-OCT-2018, the day the REL1_32 branch was made
m_parsoid_version: "e6b708b3d7ff50a314d021295dce874574aa3e9e"
m_parsoid_version: "master"

# MediaWiki 1.27 and earlier require ElasticSearch 1.6
# MediaWiki 1.28 and higher require ElasticSearch 2.x
# MediaWiki 1.29 and higher require ElasticSearch 5.x
elasticsearch_major_version: "5.x"
elasticsearch_major_version: "6.x"

# Whether or not to install Lua/luasandbox
m_install_lua: true
Expand Down Expand Up @@ -199,9 +208,6 @@ packages_php_debian:
- php-pear
- php-memcached

# No PHP 7.2 version of this (just like with IUS)
- php{{ php_debian_version }}-mcrypt

# No apt package corresponding to:
# "{{ php_ius_version }}-process"
# "{{ php_ius_version }}-pdo"
Expand Down
Loading