Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed the snippets to use code blocks macro

...

  1. Download bahmni-installer and run it using the following commands

     

    Code Block
    languagebash
    sudo yum remove -y ansible
    sudo yum remove -y bahmni-installer
    sudo yum install -y https://bahmni-repo.twhosted.com/rpm/bahmni/bahmni-installer-0.83-141.noarch.rpm

     

     

  2. Take a backup of the current database and implementation_config directory before proceeding forward
    Note: You can also use your own way of taking backup if you have one in place.

     

    Code Block
    languagebash
    bahmni db-backup
    cp -R /var/www/implementation_config ~/implementation_config_backup
  3. Copy the latest endtb-config folder to the location /etc/bahmni-installer/deployment-artifacts

     

    Code Block
    languagebash
    cd /etc/bahmni-installer/deployment-artifacts
    sudo rm -rf /etc/bahmni-installer/deployment-artifacts/release-0.83.zip
    sudo rm -rf /etc/bahmni-installer/deployment-artifacts/endtb_config
    sudo wget https://github.com/Bahmni/endtb-config/archive/release-0.83.zip
    sudo unzip release-0.83.zip
    sudo mv endtb-config-release-0.83 endtb_config
  4. Copy the inventory file from here to /etc/bahmni-installer.  Ensure that the previously existing inventory file is updated with the latest one.  The setup.yml file is downloaded using the below commands. Once it is downloaded ensure that the timezone field is updated with the actual server timezone.

     

    Code Block
    languagebash
    sudo
     
     wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/inventory
     
     -
    O /etc/bahmni-installer/inventory
      
    #Change the timezone parameter in
    
      
    #Change the timezone parameter in /etc/bahmni-installer/setup.yml after the below step
    
    sudo
     
     wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/setup.yml -
    O /etc/bahmni-installer/setup.yml
    
    cd
     
     /etc/bahmni-installer
    
    sudo
     
     yum clean all
    
    sudo
     
     bahmni -i
    inventory 
     inventory install
    
    sudo bahmni --implementation_play=/var/www/bahmni_config/playbooks/all.yml -i inventory install-impl
     
    #Run the batch program for the first time
    sudo su bahmni
    
     
    #Run the batch program for the first time
    sudo su bahmni
    /usr/bin/bahmni-batch

Fresh installation of Bahmni 1.3

...

  1. Install the bahmni-installer along with its pre-requisite software using the following commands

     

    sudo yum install 
    Code Block
    languagebash
    sudo yum install -y unzip wget
     
    sudo yum install 
    
    sudo yum install -y https://bahmni-repo.twhosted.com/rpm/bahmni/bahmni-installer-0.83-141.noarch.rpm
  2. Copy the latest endtb-config folder and base database dump (from endtb-config folder) to the location /etc/bahmni-installer/deployment-artifacts

     

    Code Block
    languagebash
    cd
     
     /etc/bahmni-installer/deployment-artifacts
    
    sudo
     
     rm
     
     -
    rf 
    rf /etc/bahmni-installer/deployment-artifacts/endtb_config
    
    sudo
     
     wget https://github.com/Bahmni/endtb-config/archive/release-0.83.zip
    
    sudo
     
     unzip release-0.83.zip
    
    sudo
     
     mv
     
     endtb-config-release-0.83 endtb_config
    
    cp
     
     endtb_config/dbdump/mysql_dump.sql openmrs_backup.sql

     

     

  3. Copy the inventory file from here to /etc/bahmni-installer.  Ensure that the previously existing inventory file is updated with the latest one.  The setup.yml file is downloaded using the below commands. Once it is downloaded ensure that the timezone field is updated with the actual server timezone.

     
    Code Block
    languagebash
    sudo
     
     wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/inventory
     
     -
    O /etc/bahmni-installer/inventory
      
    #Change the timezone parameter in
    
      
    #Change the timezone parameter in /etc/bahmni-installer/setup.yml after the below step
    
    sudo
     
     wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/setup.yml -
    O /etc/bahmni-installer/setup.yml
    
    cd
     
     /etc/bahmni-installer
    
    sudo
     
     bahmni -i
    inventory 
     inventory install
    
    sudo bahmni --implementation_play=/var/www/bahmni_config/playbooks/all.yml -i inventory install-
    impl 
     
    #Run the batch program for the first time
    sudo su bahmni
    impl 
     
    #Run the batch program for the first time
    sudo su bahmni
    /usr/bin/bahmni-batch