Module - tripleo_network_ports_populate_environment

This module provides for the following ansible plugin:

  • tripleo_network_ports_populate_environment

Module Documentation

Create TripleO network port environment by extending the beremetal environment

Options

environment

Existing heat environment data to add to

role_net_map

Structure with role network association

node_port_map

Structure with port data mapped by node and network

templates

The path to tripleo-heat-templates root directory

Authors

Harald Jensås <hjensas@redhat.com>

Example Tasks

- name: Populate environment with network port data
  tripleo_network_ports_populate_environment:
    environment: {}
    role_net_map:
      Controller:
      - external
      - internal_api
      - storage
      - tenant
      Compute:
      - internal_api
      - storage
      - tenant
    node_port_map:
      controller-0:
        internal_api:
          ip_address: 172.18.0.9
          ip_subnet: 172.18.0.9/24
          ip_address_uri: 172.18.0.9
        tenant:
          ip_address: 172.19.0.9
          ip_subnet: 172.19.0.9/24
          ip_address_uri: 172.19.0.9
      compute-0:
        internal_api:
          ip_address: 172.18.0.15
          ip_subnet: 172.18.0.15/24
          ip_address_uri: 172.18.0.15
        tenant:
          ip_address: 172.19.0.15
          ip_subnet: 172.19.0.15/24
          ip_address_uri: 172.19.0.15
  register: environment