[Ohrrpgce] SVN: james/12026 Add ansible script to install/upgrade the OHRRPGCE wiki's mediawiki inst

Ralph Versteegen teeemcee at gmail.com
Mon Nov 9 19:36:51 PST 2020


Finally got around to installing and figuring out how to run ansible. I'm a
bit disappointed that it takes such a long time to run, because of how long
it takes to untar and delete the mediawiki installation. It looks like you
partly tried to prevent that with
  - name: Clean up old staging folder
    file:
      state: absent
      dest: '{{ staging_dir }}'
    when: upload_tarball.changed

etc, but it doesn't actually work, because of the ultimate 'mv "{{
staging_dir }}" "{{ real_dir }}"'.
I found that making a copy of ohrrpgce/ takes a very long time so I guess
it's all unavoidable. I'll stick to making test changes via ssh before
copying them over to the ansible scripts.

On Mon, 28 Sep 2020 at 15:58, Ralph Versteegen <teeemcee at gmail.com> wrote:

>
>
> On Mon, 28 Sep 2020 at 15:57, Ralph Versteegen <teeemcee at gmail.com> wrote:
>
>> OK. That doesn't sound bad.
>>
>> It's not a browser cache issue (unless it's something in the cookie),
>> because the server doesn't send back any response at all, so there's
>> nothing for the browser to fetch. Is there somewhere else that php logs
>> errors?
>>
> (Just a blank 500 response, I mean)
>
>>
>> On Mon, 28 Sep 2020 at 14:18, James Paige <Bob at hamsterrepublic.com>
>> wrote:
>>
>>> You are welcome to test extensions and edits to LocalSettings directly,
>>> but to make those changes permanent they should go in the ansible files.
>>>
>>> You can run the ansible yourself if you want to apply changes. The
>>> "copy" command does a hash first, and only re-copies the tarball if it has
>>> actually changed, so you can re-run it frequently and it is okay.
>>>
>>> I wonder if your browser cache has a mis-match of old and new versions
>>> of some Metrolook files. Could that be breaking it?
>>>
>>> On Sun, Sep 27, 2020, 8:08 PM Ralph Versteegen <teeemcee at gmail.com>
>>> wrote:
>>>
>>>> So if we wanted to upgrade an extension or skin, add an extension or
>>>> skin, or modify LocalSettings.php, should it be done by editing these
>>>> scripts and running Ansible? (I've never used Ansible.) It seems like that
>>>> would re-upload the whole wiki. Would it be acceptable to make changes to
>>>> the ansible scripts and the server files in parallel for testing, without
>>>> running Ansible? Or is that any other way to test changes?
>>>>
>>>> Currently the wiki no longer displays for me, probably because of my
>>>> use of the Metrolook skin. I just get a 500 error with blank response, and
>>>> there's no error logged in logs/https/error.log. I'll have to experiment
>>>>
>>>> In the https error log I also notice:
>>>> [Sun Sep 27 15:06:31.102274 2020] [cgi:error] [pid 27320:tid
>>>> 140042806298368] [client X.X.X.X:38194] AH02811: script not found or unable
>>>> to stat: /home/james_paige/rpg.hamsterrepublic.com/bugzilla/buglist.cgi,
>>>> referer: https://rpg.hamsterrepublic.com/
>>>>
>>>> On Mon, 28 Sep 2020 at 10:56, James Paige <Bob at hamsterrepublic.com>
>>>> wrote:
>>>>
>>>>> Right now this installs Mediawiki 1.34.4
>>>>>
>>>>> 1.35.0 is available, but requires a newer PHP version than what I have
>>>>> enabled on my account right now, so I'll switch to that on another day when
>>>>> I have more time.
>>>>>
>>>>> The process to add more extensions is pretty simple.
>>>>>
>>>>> TMC, I'll send you the Ansible Vault password separately, just so I'm
>>>>> not the only one who knows it.
>>>>>
>>>>> ---
>>>>> James Paige
>>>>>
>>>>>
>>>>> On Sun, Sep 27, 2020 at 5:53 PM <subversion at hamsterrepublic.com>
>>>>> wrote:
>>>>>
>>>>>> james
>>>>>> 2020-09-27 14:53:16 -0700 (Sun, 27 Sep 2020)
>>>>>> 77
>>>>>> Add ansible script to install/upgrade the OHRRPGCE wiki's mediawiki
>>>>>> instance
>>>>>> ---
>>>>>> A   web/ansible/
>>>>>> A   web/ansible/ohr.hosts
>>>>>> A   web/ansible/ohrwiki.yml
>>>>>> A   web/ansible/ohrwiki_data/
>>>>>> A   web/ansible/ohrwiki_data/EmbedVideo-v2.8.0.zip
>>>>>> A   web/ansible/ohrwiki_data/LocalFirst.php
>>>>>> A   web/ansible/ohrwiki_data/LocalSettings.php.j2
>>>>>> A   web/ansible/ohrwiki_data/Metrolook-REL1_35-378825e.tar.gz
>>>>>> A   web/ansible/ohrwiki_data/README.txt
>>>>>> A   web/ansible/ohrwiki_data/mediawiki-spamcallback.php
>>>>>> A   web/ansible/ohrwiki_data/ohrrpgce.png
>>>>>> _______________________________________________
>>>>>> Ohrrpgce mailing list
>>>>>> ohrrpgce at lists.motherhamster.org
>>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>>>
>>>>> _______________________________________________
>>>>> Ohrrpgce mailing list
>>>>> ohrrpgce at lists.motherhamster.org
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>>
>>>> _______________________________________________
>>>> Ohrrpgce mailing list
>>>> ohrrpgce at lists.motherhamster.org
>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>
>>> _______________________________________________
>>> Ohrrpgce mailing list
>>> ohrrpgce at lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20201110/b843ce6d/attachment.html>


More information about the Ohrrpgce mailing list