ome / infrastructure

A repository containing scripts for managing infrastructure
BSD 2-Clause "Simplified" License
20 stars 19 forks source link

Initial www-dev playbook #281

Closed kennethgillen closed 7 years ago

kennethgillen commented 7 years ago

Development of a new web server for OME website migration.

Private config in https://github.com/openmicroscopy/management_tools/pull/474

kennethgillen commented 7 years ago

Thanks for review @sbesson - I am planning to remove the ON_HOLD label once the relevant config is able to be merged, i.e. after the removal of vault.

sbesson commented 7 years ago

A couple of additions proposed in https://github.com/kennethgillen/infrastructure/pull/1 to match the current gem requirements of www.openmicroscopy.org (incl. . There are still a few gotchas but I think we are close to a state where we can merge this playbook as a first working pass and start working on the nginx configuration.

kennethgillen commented 7 years ago

Thanks, Seb. Not sure how we started NGINX before.. but good to have it in now.

sbesson commented 7 years ago

With the last commit, tried to the deploy the entire website from a freshly snapshoted VM using ansible-playbook --ask-become-pass server-state-playbooks/www-dev/www-dev.yml. Barring the issue discussed below, everything worked as expected with the static content being served by nginx as expected.

Merging this alongside with the private PR containing the variables to allow the work on the Nginx configuration files (SSL + redirects work). On the Jekyll front, the main issue is that the bundle install step systematically fails with No such file or directory error forcing the playbook to be executed twice for every code change. Merging this playbook as it is also allows to investigate this issue separately.