Skip to content

msf-oca-his/bahmni-mart-playbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bahmni-mart-playbook

Automated ansible playbook to deploy bahmni-mart along with metabase(docker container) and spring cloud data flow server(docker container)

For Bahmni-mart installation please do the following:

  • 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

HTTPS for metabase

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

Command to deploy

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'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%