Module - tripleo_os_net_config_mappings

This module provides for the following ansible plugin:

  • tripleo_os_net_config_mappings

Module Documentation

This module creates os-net-config mapping for nodes or node groups based on the input data provided. MAC addresses or DMI table strings can be used to identify specific nodes or node groups. See manual page for DMIDECODE(8) for a list of DMI table strings that can be used.

Options

net_config_data_lookup

Per node and/or per node group configuration map

Authors

Harald Jensås (hjensas@redhat.com)

Example Tasks

- name: Map os-net-config nicX abstraction using MAC address
  tripleo_os_net_config_mappings:
    net_config_data_lookup:
      overcloud-controller-0:
        nic1: 00:c8:7c:e6:f0:2e
      overcloud-compute-13:
        nic1: 00:18:7d:99:0c:b6
- name: Interface name to os-net-config nicX abstraction using system-uuid
  tripleo_os_net_config_mappings:
    net_config_data_lookup:
      overcloud-controller-0:
        dmiString: system-uuid
        id: A8C85861-1B16-4803-8689-AFC62984F8F6
        nic1: em3
        nic2: em1
        nic3: em2
        nic4: em4
- name: Interface name to os-net-config nicX abstraction for node groups using system-product-name
  tripleo_os_net_config_mappings:
    net_config_data_lookup:
      nodegroup-dell-poweredge-r630:
        dmiString: system-product-name
        id: PowerEdge R630
        nic1: em3
        nic2: em1
        nic3: em2
      nodegroup-cisco-ucsb-b200-m4:
        dmiString: system-product-name
        id: UCSB-B200-M4
        nic1: enp7s0
        nic2: enp6s0