Adding hooks

Hooks are custom code that you can run at certain stages of the migration. You can define a hook by using an Ansible playbook or a custom hook container.

You can create a hook before a migration plan or while creating a migration plan.

Prerequisites
Procedure
  1. In the web console, navigate to Hooks and click Create hook.

  2. Specify the hook Name.

  3. Select Ansible playbook or Custom container image as the Hook definition.

  4. If you select Custom container image, specify the image location, for example, quay.io/github_project/container_name:container_id.

  5. Select a migration step and click Add.

    The new migration hook appears in the Hooks list.