Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hooks functionality #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergiordlr
Copy link
Contributor

@sergiordlr sergiordlr commented May 4, 2020

Add support for hooks functionality

In order to add a hook to a migration plan, add this variable to the migration (or in the defaults/main.yml file of the test role)

- name: Execute migration
  include_role:
    name: migration_run
  vars:
    migration_hooks:
    - hook_name: automaticpreback
      custom: false
      target_cluster: source
      playbook: "{{ lookup('template', 'hook.yml.j2') | string }}"
      execution_namespace: robot-source
      service_account: robot-source
      phase: PreBackup

Allowed target_custers
target_cluster: destination
target_cluster: source

Allowed phases
phase: PreBackup
phase: PostBackup
phase: PreRestore
phase: PostRestore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant