Synchronizing Orchestrator elements between Orchestrator servers

This recipe will show how to use synchronization to update Orchestrator objects between two Orchestrator servers.

Getting ready

We will need at least one workflow, action, or other Orchestrator object that can be synced.

Additionally, we also need two Orchestrator servers; they should not be in a cluster. For test purposes, you can deploy an Orchestrator appliance without any additional configuration.

How to do it...

We will use a workflow in this example. The same method applies to all other Orchestrator elements that can be synchronized:

  1. Right-click on a workflow (or a folder) and select Synchronize.
  2. You will now be asked to enter the IP or FQDN of the other Orchestrator server as well as some credentials for the connection. Click on Login.
  3. You will now see a summary of all workflows you have selected for synchronization on both Orchestrator servers:
    • A: Here, the version number of a given workflow is shown
    • B: You have four options that we will discuss in the How it works... section of this recipe
    • C: Clicking on the magnifying glass icon will produce a split screen that shows you the difference between the versions (see the recipe Version control in Chapter 4, Programming Skills)

      How to do it...

  4. Click on Synchronize ! to synchronize the workflows.

How it works...

Synchronizing Orchestrator objects is one of the easiest ways to make sure that two servers have the same elements. This doesn't work for clusters as both Orchestrators in a cluster share the same database (same workflow IDs). A good example here is a sync between a development environment and a production environment.

Note

The Orchestrator objects that can use synchronization are workflows, actions, resources, configurations, packages, policy templates, and WebViews.

When synchronizing a local element that doesn't exist on the remote server, Orchestrator will not only create the element but also the folder structure for it. This will make sure that the same structure exists on both servers. Also, the ID of the Orchestrator object will be kept the same when synchronizing.

Please note that depending on which direction you sync, the options you see might be different:

Action

Description

None

This is not what you expect. This will update the remote version with the local version. If the element doesn't exist on the remote side, it will create it there.

Update

Update will take the version from the remote server and will overwrite the local version.

Commit

This will take the local version and overwrite the remote version.

Delete

If an element doesn't exist on the remote server, you can choose to delete the local version.

See also

The recipe Managing remote Orchestrators in this chapter.

The recipe Working with REST in Chapter 9, Essential Plugins.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset