Puppet Class: network_interfaces

Defined in:
manifests/network_interfaces.pp

Overview

Class: device_hiera::network_interfaces

Utilize Hiera data to simplify NetDev network_interface configuration.

Parameters

None yet.

Variables

Here you should define a list of variables that this module would require.

  • $defaults This contains a hash of default network_interface configuration values gathered from Hiera data merge.

  • $ports This contains a hash with String keys named for slot names, and String values containing a range of port numbers.

  • $custom This contains a hash with String keys for network_interface names that receive custom configuration. Values are another hash of configuration settings.

Examples

Examples:

Hiera configuration for device_hiera::network_interfaces


classes:
- device_hiera

device_hiera::resources:
- network_interfaces

device_hiera::defaults::network_interface:
  duplex: 'full'
  enable: 'true'
  mtu   : '1500'

device_hiera::network_interfaces::ports:
  - 'GigabitEthernet': '1-48'

device_hiera::network_interfaces::custom:
  'TenGigabitEthernet01':
    description: 'Uplink to core'
    speed: '10g'