5.1 Updating passwords in databag

This topic explains about the process of updating passwords in databag.

  1. Launch putty and log in to product VM with NIS user (Example: dkarkera) and then switch to root user.
  2. Navigate to the chef-repo directory by executing the command.
    cd /scratch/obma_installer/chef-repo
  3. Set the required editor by executing the command.
    export EDITOR=vim
  4. Execute the below command to open the databag file in edit mode.
    knife data bag edit --local-mode <databag_sub_directory> <datasource_credential_json_file> --secret-file <secret_key_path>

    Table 5-1 Attribute Details

    Attribute Name Attribute Description
    databag_sub_directory Name of sub directory where the datasource credential json file is located inside databag directory.

    Example: obma_weblogic, obma_java, etc.,

    datasource_credential_json_file Name of the datasource credential json file where all the credential related to respective product is listed.

    Example: datasourceCred, datasourceCred_plato

    Note: Here mention the filename without the .json extension.

    secret_key_path Location to the secret key.

    Example: /scratch/obma_installer_ssl/chef-repo/secrets/secret_key

    Example:
    • knife data bag edit --local-mode obma_weblogic datasourceCred --secret-file /scratch/obma_installer/chef-repo/secrets/secret_key
    • knife data bag edit --local-mode obma_weblogic datasourceCred_plato --secret-file /scratch/obma_installer/chef-repo/secrets/secret_key
  5. Key attribute OBIS password should be same as FCIS schema password.
  6. Post update to the credential file, save and close.