8.2.3 Update Roles File

To update roles file:

  1. Navigate to the path /scratch/obma_patch_installer/chef-repo/roles.

    Update the obma_patch_install.rb with below details.

  2. If you are upgrading from one version to another, then the version to be undeployed needs to be added in the below section app_undeployment.
  3. In the app_deployment section, update the new version to be deployed.
  4. Navigate to the bottom of the file and verify the recipes to be executed. All the listed recipes will be executed in sequential order as shown below.
    For execution, please switch to root user from OS user and then run the below commands.
    cd /scratch/obma_patch_installer/chef-repo
    sh obma_patch_installer.sh
    1. run_list ['recipe[obma_patchset::undeployapp]','recipe[obma_patchset::stopman]','recipe[obma_patchset::updatesetuseroverrides_patch]','recipe[obma_patchset::startman]','recipe[obma_patchset::deployapp]']

      Once successfully run, please make sure all services are up. Upon verification, please make update the runlist to as below and re-run the obma_patch_installer.sh command.

    2. run_list ['recipe[obma_patchset::deployapigateway_router]']

      This step would bring up the plato-apigateway-router at the port specified. To confirm the same please visit the router logs at the location /scratch/work_area/logs.