Module - export_workload

This module provides for the following ansible plugin:

  • export_workload

Module Documentation

Export OpenStack workload definition into an OS-Migrate YAML

Options

auth:

Required if 'cloud' param not used.

auth_type:

Auth type plugin for OpenStack. Can be omitted if using password authentication.

validate_certs:

Validate HTTPS certificates when logging in to OpenStack.

region_name:

OpenStack region name. Can be omitted if using default region.

path:

Resources YAML file to where workloads will be serialized.

In case the resource file already exists, it must match the os-migrate version.

In case the resource of same type and name exists in the file, it will be replaced.

name:

Name (or ID) of an instance to export.

migration_params:

Dictionary with parameters for the migration procedure.

availability_zone:

Availability zone.

cloud:

Cloud resource from clouds.yml

Required if 'auth' param not used.

Authors

:

OpenStack tenant migration tools (@os-migrate)

Example Tasks

- name: Export migration-vm into /opt/os-migrate/workloads.yml
  os_migrate.os_migrate.export_workload:
    path: /opt/os-migrate/workloads.yml
    name: migration-vm