Resource Type: network_config

Defined in:
lib/puppet/type/network_config.rb
Providers:
sles
redhat
interfaces

Overview

Manage non-volatile network configuration information

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • family (defaults to: inet)

    The address family to use for the interface

    Supported values:
    • inet
    • inet6
    • inet4 (alias for: inet)
  • hotplug (defaults to: true)

    Allow/disallow hotplug support for this interface

  • ipaddress

    The IP address of the network interfaces

  • method (defaults to: dhcp)

    The method for determining an IP address for the interface

    Supported values:
    • static
    • manual
    • dhcp
    • loopback
    • none (alias for: static)
  • mode (defaults to: raw)

    The exclusive mode the interface should operate in

    Supported values:
    • raw
    • vlan
  • mtu

    The Maximum Transmission Unit size to use for the interface

  • netmask

    The subnet mask to apply to the interface

  • onboot (defaults to: true)

    Whether to bring the interface up on boot

  • options

    Provider specific options to be passed to the provider

  • startmode (defaults to: auto)

    Allow/disallow startmode support for this interface

Parameters

  • name (namevar)

    The name of the physical or logical network device

  • provider

    The specific backend to use for this ‘network_config` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • reconfigure

    Reconfigure the interface after the configuration has been updated

Features

  • provider_options

    The provider can accept a hash of arbitrary options. The semantics of these options will depend on the provider.

  • hotpluggable

    The system can hotplug interfaces

  • reconfigurable

    The provider can update live interface configuration after the non-volatile network configuration is updated. This may entail a momentary network disruption as it may mean bringing down the interface for a short period.

  • startmode

    The system can define startmode of an interface