Bahmni Mart Installation Setup
1. For cleaning up postgres from instance ( Not required for all scenarios, only required if we want a different version of postgres from what we already have in the bahmni instance)
2. Remove bahmni-mart if installed before
3. Download bahmni-mart playbook
4. If we want bahmni-mart installed on both master and slave machine please use the commands to get the mart_inventory file below
Update ip for fresh installation of mart
vi /etc/bahmni-mart-playbook/inventories/bahmni-mart
# delete the line with content '<master_ip> ansible_connection=local'
# add below line as first line
<master_ip> ansible_connection=ssh ansible_ssh_user=root5. For standalone instance where we don’t have master and slave setup the below inventory is being used
Remove entries under [bahmni-mart-db-slave], [bahmni-mart-scdf], [metabase-db-slave] in the bahmni-mart inventory file
6. Verify and update the below parameters in setup.yml
cd /etc/bahmni-mart-playbook
bahmni_mart_url: https://github.com/Bahmni/bahmni-mart/releases/download/2.0.4/bahmni-mart-2.0.4.noarch.rpm
bahmni_mart_version: "2.0.4"
openmrs_db_password: P@ssw0rd
metabase_db_password: password
analytics_db_password: password
postgres_password: password
metabase_with_ssl: false
custom_keystore_location: "<ssl certificate in jks format>"
metabase_keystore_password: <password of jks cert>
mail_subject: "Notification regarding failed jobs"
mail_from: "no-reply@bahmni-mart.notifications"
mail_recipients: "<mail recipients separated by comma>"
analytics_db_user: analytics
metabase_db_user: metabase
analytics_db_name: analytics
metabase_db_name: metabaseModify the file “/etc/bahmni-mart-playbook/roles/postgres/defaults/main.yml” with below entries
7. Metabase without ssl
Metabase with let's encrypt ssl(optional)
Metabase with custom ssl(optional)
Add necessary jobs or Remove the extra jobs from bahmni-mart.json
8. Add access privileges to Vagrant IP in pg_hba.conf
Update the file with the below entry
Restart Postgresql
9. Run bahmni mart
Check if following URLs are accessible
Metabase
docker ps
docker stop <METABASE CONTAINER ID>
docker start metabase
http://<host>:9003/To connect metabase with a analytics database (when using without ssl)Host : IP of the machine as seen by Metabase docker container. E.g: 172.17.42.1
port : 5432
Database name : analytics
Database username : analytics
Database password : password
Docker container (metabase and scdf) removal step need to be added.
원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0