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
-
You must create an Ansible playbook or a custom hook container.
Procedure
-
In the web console, navigate to Hooks and click Create hook.
-
Specify the hook Name.
-
Select Ansible playbook or Custom container image as the Hook definition.
-
If you select Custom container image, specify the image location, for example,
quay.io/github_project/container_name:container_id
. -
Select a migration step and click Add.
The new migration hook appears in the Hooks list.