Thx @NorthernColorado for the hint!
Running the playbooks inside a docker ubuntu container did (finally) work => https://www.fairteil.de
this has also been very helpful:
- Mail server configuration
- Need help to fix ERR 500
-
Sending emails fails with 500 ArgumentError: Missing host to link to
Thank You Community!
here the changes I made https://github.com/openfoodfoundation/ofn-install/compare/master...orangeman:master
-
the playbook did not start postgresql after installation. Hence database user/roles/etc could not be ceated. (How) did this work before? https://github.com/openfoodfoundation/ofn-install/commit/8e512548fd88ec32436d92d3c6be6735375efc13
-
psql encoding fix seemed to need localization too . (How) did this work for france/norway/etc? Would this file be an ansible role template (inserting locale) instead of a static file? https://github.com/openfoodfoundation/ofn-install/commit/6874820ef29aea661b79b3de1bf2a1ac28bd0f89
Changing RAILS_ENV and re-running only the deploy playbook did not work because the monit conf.d file (for delayed job workers) and the unicorn init script both contain rails_env but are part of the provision playbook. Hence the delayed job workers, unicorn and the configured mail method had different rails environments.
https://github.com/openfoodfoundation/ofn-install/blob/master/roles/common/templates/monit.j2
setting rails_env manually and starting delayed job workers manually did work, but monit is still not working
$ monit start
/etc/monit/monitrc:290: Include failed – Success '/etc/monit/conf-enabled/*'
any ideas?
Also I had to manually start nginx, memcached, postgresql and unicorn. Is this because of docker?
What is the normal way to start everything after playbooks ran?
What is the intended purpose of vars.yml?