Module - import_network

This module provides for the following ansible plugin:

  • import_network

Module Documentation

Import OpenStack network from an OS-Migrate YAML structure

Options

auth:

Dictionary with parameters for chosen auth type.

Required if 'cloud' parameter is not used.

auth_type:

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

region_name:

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

data:

Data structure with network parameters as loaded from OS-Migrate YAML file.

filters:

Options for filtering existing resources to be looked up, e.g. by project.

availability_zone:

Availability zone.

cloud:

Cloud from clouds.yaml to use.

Required if 'auth' parameter is not used.

Authors

:

OpenStack tenant migration tools (@os-migrate)

Example Tasks

- name: Import mynetwork into /opt/os-migrate/networks.yml
  os_migrate.os_migrate.import_network:
    cloud: source_cloud
    data:
    - type: openstack.network
      params:
        name: my_net