Automated ansible playbook to deploy bahmni-mart along with metabase(docker container) and spring cloud data flow server(docker container)
- Before running the installtion please add the following parameters in setup.yml file
Property | Mandatory |
---|---|
analytics_db_password | Yes |
openmrs_db_password | Yes |
metabase_db_password | Yes |
Certificates generated from let's encrypt can be used for metabase by converting them into jks format. Update the following properties in setup.yml to run metabase with https.
Property | Comment |
---|---|
metabase_with_ssl | Set to true to add ssl certificate for metabase. When this is true, the properties bahmni_lets_encrypt_cert_dir, metabase_keystore_password should be provided. Default value is 'false' |
bahmni_lets_encrypt_cert_dir | Let's encrypt certificates directory, it is mandatory if metabase_with_ssl set to true. Eg: /etc/letsencrypt/live/demo.bahmni.org |
metabase_keystore_password | Some password to generate jks file, it is mandatory if metabase_with_ssl set to true |
Since let's encrypt certificates expires after 90 days, you need to regenerate jks file after renewing bahmni certificates. Use following command to regenerate jks file
/opt/bahmni-mart/bin/pemtojks.sh <bahmni_lets_encrypt_cert_dir> <metabase_keystore_password>
Stop metabase container and update metabase docker container
docker-compose -f /opt/bahmni-mart/metabase-ssl-docker-compose.yml up -d
foo@bar:~# ansible-playbook -i /etc/bahmni-mart-playbook/inventories/bahmni-mart /etc/bahmni-mart-playbook/all.yml --extra-vars '@/etc/bahmni-mart-playbook/setup.yml'