Puppet Class: interfaces

Defined in:
manifests/interfaces.pp

Overview

Class: device_hiera::interfaces

Utilize Hiera data to simplify Network Device 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 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 interface names that receive custom configuration. Values are another hash of configuration settings.

Examples

Examples:

Hiera configuration for device_hiera::interfaces


classes:
- device_hiera

device_hiera::resources:
- interfaces

device_hiera::defaults::interface:
  description: 'Default configuration'
  mode: 'dynamic auto'

device_hiera::interfaces::ports:
  - 'FastEthernet0': '1-24'
  - 'GigabitEthernet0': '1-2'

device_hiera::interfaces::custom:
  'GigabitEthernet0/3':
    description: 'Uplink to core'
    mode: 'trunk'