Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The OpenSRP platform includes three components OpenSRP Android Client, OpenSRP Server and OpenMRS. Each of these systems have a distinct development environment. This section includes setup instructions for each component of OpenSRP. Generally speaking, the setup involves using package managers as displayed below:

For Mac OS X 10.9.2 and later, make sure that Homebrew is installed, and use brew install [pkg]. To install a specific version of the [pkg], use brew install [pkg] --version[version]

For Ubuntu/Debian use sudo apt-get install [pkg]

For Red Hat/Fedora/CentOS use sudo yum install [pkg]
 

...

Easily manage (deploy new instances of or update) your OpenSRP, OpenMRS, and DHIS2 setups using the Ansible Playbooks provided here. The repository uses Ansible's recommended alternative directory layout. You will need to create host_vars and group_vars to match your setup, if you haven't already.

...

Here is a list of Ansible flags options you might want to add when running a playbook:

FlagOptionDescription
-e "certbot_ceate_certs=true"Force the playbook to generate a new LetsEncrypt certificate and key. Only applies for sites that have been set to use LetsEncrypt certs.

...

ansible-playbook -i inventories/production deploy-opensrp.yaml --vault-password-file=[local path to the file holding the vault password] --limit [name of the host _var or group _var defining your setupyou'd like to deploy to]

Switch the inventory to inventories/staging to run the playbook in your staging environment.

...

ansible-playbook -i inventories/production deploy-openmrs.yaml --vault-password-file=[local path to the file holding the vault password] --limit [name of the host _var or group _var defining your setupyou'd like to deploy to]

Switch the inventory to inventories/staging to run the playbook in your staging environment.

...

ansible-playbook -i inventories/production deploy-dhis.yaml --vault-password-file=[local path to the file holding the vault password] --limit [name of the host _var or group _var defining your setupyou'd like to deploy to]

Switch the inventory to inventories/staging to run the playbook in your staging environment.

...