Hitchwiki / hitchwiki

The Hitchhiker's Guide to Hitchhiking the World
https://hitchwiki.org
32 stars 9 forks source link

setup Hitchwiki with ansible #164

Closed traumschule closed 4 years ago

traumschule commented 6 years ago

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.

Build Status

Test it!

git clone https://github.com/traumschule/hitchwiki -b ansible
./scripts/vagrant/install.sh
./scripts/deploy_remote.sh HOST

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 (See mw_import.yml)

Nov 13 secure production setup (fixes #142)

Oct 28 deploy beta.hitchwiki.org with ansible

simison commented 6 years ago

@guaka or @omelnyk do you know how to read variables into Ansible from external config files (yaml/ini/json/whatnot)?

guaka commented 6 years ago

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

simison commented 6 years ago

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

simison commented 6 years ago

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/

simison commented 6 years ago

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.

simison commented 6 years ago

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.

guaka commented 4 years ago

This week I put together some ansible code to deploy hitchwiki-private to a new server, it's almost done.

guaka commented 4 years ago

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