Modify the installation and product template files for Ops Manager

Source: Internet
Author: User
Tags decrypt ssh

This article briefly describes how to modify an OPS manager installation by decrypting and editing the YAML file that the OPS Manager uses to store configuration data. You can use these procedures to view and change values that are not accessible through the Ops Manager Web interface. In addition, you can modify the product templates that Ops Manager uses to create forms and get user input. Tips: Be careful when you change the installation and product template files for Ops Manager. Using the space key instead of the TAB key, remember that the YAML file uses spaces as delimiters. Furthermore, Pivotal does not officially support these operations, so there is some risk in using these operations. Introduction to installation and product template files

During the installation process, the Ops Manager will combine information from the installation and product template files in the future to generate a manifest manifest that defines the deployment. installation file : PCF stores data entered by users and automatically generated for OPS manager in a installation YAML file on an OPS manager virtual machine (VM). PCF encrypts this file and stores it under Directory/var/tempest/workspaces/default. The file must be decrypted to view the content, edit it as needed, and then re-encrypt it. Product Template : Ops Manager uses product templates to create forms and get user input. The Job_types and Property_blueprint key-value pairs in the product template determine how the jobs and properties sections are displayed in the installation file. OPS Manager saves the product template as a Yaml file under the directory/var/tempest/workspaces/default/metadata of the OPS Manager virtual machine. These files are not encrypted, so they can be edited without decryption. Modify the installation file

Perform the following steps to locate, decrypt, and edit the installation file for OPS Manager: 1. On the command line, run SSH Ubuntu@ops-manager-fqdn into the OPS manager virtual machine. 2. Go to the Scripts directory:

    $ cd/home/tempest-web/tempest/web/scripts/
3. Run the following command to decrypt the installation.yml file and make a temporary copy of the decrypted file. When prompted for a password, enter the decryption password that was created when you first launched Ops Manager:
$ sudo-u tempest-web./decrypt/var/tempest/workspaces/default/installation.yml/tmp/installation.yml
4. Open the/tmp/installation.yml file to view or edit the values. 5. If you plan to make changes, back up your original installation.yml file:
$ cp/var/tempest/workspaces/default/installation.yml ~/installation-orig.yml
6. If you have made a change to a copy of the Installation.yml file, you must encrypt it and overwrite the original file:
$ sudo-u Tempest-web rails_env=production/home/tempest-web/tempest/web/scripts/encrypt/tmp/installation.yml/var/ Tempest/workspaces/default/installation.yml
7. Delete the temporary copy of the decrypted file:
$ rm/tmp/installation.yml
8. Restart the Ops Manager Web interface:
$ sudo service tempest-web stop && sudo service tempest-web start
9. Enter OPS Manager in the browser and enter the decryption password. 10. Log in to Ops Manager and click Apply Changes。 11. If Ops Manager cannot load the changes, see the Recovery backup section of this article to restore the previous settings. Modify a product template file

Perform the following steps to locate and edit the OPS Manager product template file: 1. In the command line, run SSH Ubuntu@ops-manager-fqdn into the OPS manager virtual machine. 2. In the Ops Manager virtual machine, go to the metadata directory:

$ cd/var/tempest/workspaces/default/metadata/
The 3./var/tempest/workspaces/default/metadata/directory contains the product template as a Yaml file. If you plan to make changes, back up the original product template Yaml file:
$ cp/var/tempest/workspace/default/metadata/your-product-template.yml ~/your-product-template-orig.yml
4. Open and edit the YAML file for the product template as needed. 5. Enter OPS Manager in the browser to see if there are any changes. 6. If Ops Manager cannot load the changes, see the Recovery backup section of this article to restore the previous settings. Restore Backup

Perform the following steps to recover the backup of the installation or product template files: 1. On the command line, run SSH Ubuntu@ops-manager-fqdn into the OPS MANAGER virtual machine. 2. Overwrite the modified file with the backup file:
For the installation file, run the following command:

$ CP ~/installation-orig.yml/var/tempest/workspaces/default/installation.yml
-For the product template file, run the following command:
$ CP ~/your-product-template-orig.yml/var/tempest/workspaces/default/metadata/your-product-template.yml
3. Restart the Ops Manager Web interface:
$ sudo service tempest-web stop && sudo service tempest-web start
4. Enter OPS Manager in the browser and enter the decryption password. 5. Log in to Ops Manager and click Apply Changes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.