User talk:Revansx/meza/Installing MEZA 34.x on a local Centos 7 VM from scratch

Update php_ius_version to php 7.2
diff --git a/config/defaults.yml b/config/defaults.yml index e8d312d..4bca5b1 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -158,7 +158,7 @@ mediawiki_version: "REL1_34" mediawiki_default_branch: "REL1_34" -php_ius_version: "php72u" +php_ius_version: "php" php_debian_version: "7.2" diff --git a/src/roles/apache-php/tasks/php-redhat.yml b/src/roles/apache-php/tasks/php-redhat.yml index 20fe002..598350a 100644 --- a/src/roles/apache-php/tasks/php-redhat.yml +++ b/src/roles/apache-php/tasks/php-redhat.yml @@ -3,8 +3,7 @@  yum: lock_timeout: 180 # wait up to 3 minutes for a lock ansible/ansible#57189 name: -     - "https://repo.ius.io/ius-release-el7.rpm" -     - "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" +     - "http://rpms.remirepo.net/enterprise/remi-release-7.rpm" - name: Import IUS Community Project GPG key rpm_key:
 * 1) PHP version
 * 1) Parsoid version

Fix MW ComposerPackage Modifier and then DON'T ensure proper MediaWiki git version
because of the need to fix the MediaWiki composer merge plugin diff --git a/includes/composer/ComposerPackageModifier.php b/includes/composer/ComposerPackageModifier.php index 6aa0b5b..b2059cd 100644 --- a/includes/composer/ComposerPackageModifier.php +++ b/includes/composer/ComposerPackageModifier.php @@ -29,7 +29,7 @@ class ComposerPackageModifier { }       private function setLinkAsProvides( Link $link ) { -              $this->package->setProvides( [ $link ] ); +              $this->package->setProvides( [ self::MEDIAWIKI_PACKAGE_NAME => $link ] ); }       private function newMediaWikiLink {

We need to comment out the task of ensuring the proper git version of mediawiki diff --git a/src/roles/mediawiki/tasks/main.yml b/src/roles/mediawiki/tasks/main.yml index 8579454..0a2b016 100644 --- a/src/roles/mediawiki/tasks/main.yml +++ b/src/roles/mediawiki/tasks/main.yml @@ -70,23 +70,25 @@    recurse: yes tags: - mediawiki-core -- name: Ensure proper MediaWiki git version installed - become: yes - become_user: "meza-ansible" - # Ref #1149 for TMPDIR environment var - environment: -   TMPDIR: "" - git: -   repo: https://github.com/wikimedia/mediawiki.git -   dest: "" -   version: "" -   refspec: "" -   track_submodules: no -    recursive: no -    umask: "0002" - tags: -   - latest -   - mediawiki-core + +#- name: Ensure proper MediaWiki git version installed +# become: yes +# become_user: "meza-ansible" +# # Ref #1149 for TMPDIR environment var +# environment: +#   TMPDIR: "" +# git: +#   repo: https://github.com/wikimedia/mediawiki.git +#   dest: "" +#   version: "" +#   refspec: "" +#   track_submodules: no +#    recursive: no +#    umask: "0002" +# tags: +#   - latest +#   - mediawiki-core + - name: Ensure MediaWiki core ignores submodules blockinfile: path: "/.git/config"

update MW composer Merge Plugin
diff --git a/composer.json b/composer.json index 0cc1dc9..b02c884 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@               "wikimedia/base-convert": "2.0.0", "wikimedia/cdb": "1.4.1", "wikimedia/cldr-plural-rule-parser": "1.0.0", -              "wikimedia/composer-merge-plugin": "1.4.1", +              "wikimedia/composer-merge-plugin": "^2.1", "wikimedia/html-formatter": "1.0.2", "wikimedia/ip-set": "2.1.0", "wikimedia/less.php": "1.8.0", @@ -128,7 +128,11 @@       },        "config": { "optimize-autoloader": true, -              "prepend-autoloader": false +              "prepend-autoloader": false, +              "allow-plugins": { +                      "wikimedia/composer-merge-plugin": true, +                      "composer/installers": true +              }        },        "extra": { "merge-plugin": {

Remove Extension:SemanticDrilldown
diff --git a/config/MezaCoreExtensions.yml b/config/MezaCoreExtensions.yml index 617aac7..fc5e490 100644 --- a/config/MezaCoreExtensions.yml +++ b/config/MezaCoreExtensions.yml @@ -258,11 +258,6 @@ list: version: "21a6af3b320160cbfbe97ba98604a1d334093e18" legacy_load: true - - name: SemanticDrilldown -   repo: https://github.com/wikimedia/mediawiki-extensions-SemanticDrilldown.git -   version: "tags/2.1" -   legacy_load: true -  - name: Arrays repo: https://github.com/wikimedia/mediawiki-extensions-Arrays.git version: "2166695159a9a5eb18cb96d4811cdefa0978ab8a"