Closed traumschule closed 4 years ago
@guaka or @omelnyk do you know how to read variables into Ansible from external config files (yaml/ini/json/whatnot)?
Just from .yml files
On Wed 18. Oct 2017 at 18:57, Mikael Korpela notifications@github.com wrote:
@guaka https://github.com/guaka or @omelnyk https://github.com/omelnyk do you know how to read variables into Ansible from external config files (yaml/ini/json/whatnot)?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hitchwiki/hitchwiki/pull/164#issuecomment-337657160, or mute the thread https://github.com/notifications/unsubscribe-auth/AADVyENJw6zqUp8M6e-9szaPX7z313Qhks5sti3ygaJpZM4P8Pb6 .
-- sent from my phone
Aight!
@traumschule so I guess this line in Mediawiki config needs to use PHP YAML then.
As for bash files, might be we won't have those left after Ansible but if they need access to settings, there's this: https://github.com/0k/shyaml
Two other yaml readers for php that we can install via Composer: https://symfony.com/doc/current/components/yaml.html https://github.com/mustangostang/spyc/
Use lets_encrypt module (and replace scripts/cert_selfsigned.sh)
cert_selfsigned.sh is still needed for dev environment, because lets encrypt works only for domains which are publicly accessible.
Update migrations: scripts/bot/*
I think it's okay to let these read settings.ini
, we'll just know to do that once we need to run the migration bot. Once migration is done, this whole directory is going to get wiped out anyway.
This week I put together some ansible code to deploy hitchwiki-private to a new server, it's almost done.
it's unfortunate but I don't think this will be (re)used - but please step up if you do want to (re)use some of this work
The ansible playbook (hitchwiki.yml) is a major step to make Hitchwiki v3 production ready. This branch aims for a stable and easy installation process. For future development see #172.
Test it!
For details see INSTALL.md and ansible/README.md.
Changelog
Nov 18 Install Mediawiki without errors
Run
ansible-playbook hitchwiki.yml
until Import Mediawiki content, check debug output and fix the errors (Seemw_import.yml
)LocalSettings.php
must be absent, or Cannot modify header information - headers already sent is risen) how to find BOMs backtracemediawiki-1.29.2.tar.gz
(November 2017)Nov 13 secure production setup (fixes #142)
Oct 28 deploy beta.hitchwiki.org with ansible
roles/mw/tasks/main.yml
configs/mediawiki.php
andpublic/robots.txt.php
(alternatives: spyc and below)when
clause)/var/www/public/.htaccess: Invalid command 'php_value'
although mod_php is loaded => comment both lines and add them to /etc/php/7.0/cli/php.iniCould not reliably determine the server's fully qualified domain name
although/etc/apache2/sites-enabled/hitchwiki.conf
defines it => add ServerName outside of <VirtualHost$_SERVER['REMOTE_ADDR'] = 'YOUR IP ADDRESS';
toLocal Settings.php
$logDir = '/vagrant/logs'
(./configs/mediawiki.php
)