DHIS2 Deployment Automation

Hi @salad.guyo

Thanks very much for sharing this.

You probably haven’t realized that we are actually maintaining an ansible based install at GitHub - dhis2/dhis2-server-tools: Tools to support installation and management of DHIS2. Our official documentation is lagging but expect some updates real soon.

These tools are a little different to yours as they deploy the different components (proxy, tomcat, db etc) on separate containers or VMs which is recommended for managing resources more effectively. Also they apply quite a bit more security considerations than what is in the main docs at present.

What your playbook does is to install what we call a “boombox” with everything running together in the same system. That is not always a bad thing and is sometimes suitable for small deployments.

Its interesting that you have configured a caddy reverse proxy. I will take a closer look at that. Caddy is great. Currently we are supporting nginx and apache2, but could potentially incorporate your caddy config. Also we are very interested in haproxy in situations where load balancing is required.

Thanks again for sharing. And do please look at the repo above and share any feedback you might have.

Regards
Bob

3 Likes