Adding Satellite Managers to the mesh


This topic describes how to add Satellite Managers to the Multi-Manager mesh.

Warning

Note

Satellite Managers should not have any local content for its Agents. Local content includes Actions, patch packages, templates, and user information.

Before you begin

  1. Ensure that you have configured the Content Manager.
  2. Ensure that the Manager software is installed on the target Satellite Managers as described in Installing-the-Manager-software-in-a-Multi-Manager-configuration.

To add Satellite Managers to the mesh

  1. Log on to a server that you have designated as a Satellite Manager in your environment.
  2. Open the /app/clarity/dmanager/etc/mesh.conf file in a text editor.
  3. Add the following lines:
    manager_type=member
    mega_manager=Content_Manager_host_name
    nodenum=node_number

    The Content_Manager_host_name should be the fully qualified hostname of the Content Manager. The node_number should be a unique number other than 1 (1 is reserved for the Content Manager).

    Warning

    Note

    For megamesh to work correctly, the /home/clarity directory must exist and be owned by the clarity user.

  4. Save the /app/clarity/dmanager/etc/mesh.conf file.
  5. Run the configure_megamesh script:
    /app/clarity/manager_scripts/bin/configure_megamesh

    The first time this command is run on a Satellite Manager, an SSH key is generated in the
    /app/clarity/dmanager/etc/id_rsa.pub file. A message informs you of this and exits immediately afterward.

    Warning

    Note

    The public and private keys on the Satellite Manager are owned by the clarity (Satellite Manager) account.

  6. Append the contents of the id_rsa.pub file to the /home/megamesh/.ssh/authorized_keys directory on the Content Manager.

    Warning

    Note

    If the /home/megamesh/.ssh directory does not exist on the Content Manager, create it, ensure that it has a change mode value of 0700 and is owned by the megamesh user. The authorized_keys file inside this directory should have a change mode value of 0600 and also be owned by the megamesh user.

  7. To verify that you have completed the previous step successfully, log on as root and run the following on the Satellite (where <Content Manager hostname> is rh5-mm007-01.gridapp-dev.com, for example). This command attempts to ssh to the content manager and run the date command. If the current date and time are returned, the previous step has been completed successfully:
    su clarity -c 'ssh -i /app/clarity/dmanager/etc/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/app/clarity/dmanager/etc/ssh_known_hosts -l megamesh <Content Manager hostname> date'

    Warning

    Note

    If this command is successful, but the following error message appears: “Could not create directory '/home/clarity/.ssh'”, run the following two commands and proceed with the rest of the configuration steps:
    mkdir /home/clarity
    chown clarity -R /home/clarity.

  8. Run the configure_megamesh script again:
    {{code language="none"}}
    /app/clarity/manager_scripts/bin/configure_megamesh

    {{/code}}

    Warning

    Note

    These are passwords that you used when you configured the Content Manager.

  9. Open the /app/clarity/dmanager/etc/dmanager.conf file in a text editor.
  10. Add the following lines:
    megamanager=Content_Manager_host_name
    service=static MegaManagerCommunicator "-t 1 -i 120 -f
    /app/clarity/dmanager/var/megamesh_failures"
     The Content_Manager_host_name should be the fully qualified hostname of the Content Manager.
  11. Save the /app/clarity/dmanager/etc/dmanager.conf file.
  12. Restart the dmanager service:
    service dmanager restart
  13. Restart the Multi-Manager service on the Satellite Manager:
    service megamesh restart
  14. Repeat steps 1 through 13 for the other Satellite Managers in the mesh.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Database Automation 8.6