network
: Manage network devicesnetwork::eth::bridge_packages
: Include the required bridge packagesnetwork::global
: This sets up the global options in /etc/sysconfig/network See /usr/share/doc/initscripts-/sysconfig.txt for details of each option.network::service
: Contains all supported network management servicesnetwork::service::legacy
: Restarts the network using a wrapper script that delays execution until after the Puppet agent run is finished. This ensures that networknetwork::service::network_manager
: Restarts the network using a wrapper script that delays execution until after the Puppet agent run is finished. This ensures that network
network::eth
: This sets up a particular ethernet device config file. See /usr/share/doc/initscripts-/sysconfig.txt for details of each option. Fnetwork::route
: Add a static route to an interface. See/usr/share/doc/initscripts-*/sysconfig.txt
for details of each option.
Network::BondMode
: Valid bond modes for network interfacesNetwork::Eth::BootProto
: Valid ethernet boot protocolsNetwork::TransmitPolicy
: Valid network transmit policiesNetwork::VlanType
: taken from http://lxr.free-electrons.com/source/net/8021q/vlan.c?v=2.6.32#L310
Manage network devices
The following parameters are available in the network
class:
Data type: Boolean
Restart the network if necessary due to a configuration change.
Default value: true
Include the required bridge packages
The following parameters are available in the network::eth::bridge_packages
class:
Data type: Simplib::PackageEnsure
The state to which the required packages should be set
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })
This sets up the global options in /etc/sysconfig/network
See /usr/share/doc/initscripts-/sysconfig.txt for details of each option.
The following parameters are available in the network::global
class:
gateway
gatewaydev
hostname
ipv6_autoconf
ipv6_autotunnel
ipv6_defaultdev
ipv6_defaultgw
ipv6_router
ipv6forwarding
network
networkdelay
networking
networking_ipv6
nisdomain
nozeroconf
peerdns
vlan
auto_restart
persistent_dhclient
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Simplib::Hostname
Default value: $facts['networking']['fqdn']
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Restart the network if necessary due to a configuration change.
Default value: $network::auto_restart
Data type: Optional[Boolean]
Default value: undef
Contains all supported network management services
The following parameters are available in the network::service
class:
Data type: Boolean
Enable management of the legacy 'network' service
Default value: true
Data type: Boolean
Enable management of the NetworkManager service
- Defaults to the running active state of NetworkManager on the target system
Default value: pick(fact('simplib__networkmanager.enabled'), false)
Restarts the network using a wrapper script that delays execution until after the Puppet agent run is finished.
This ensures that network changes aren't applied during a Puppet agent run
and potentially disrupt its other configurations and report (unless
explicitly configured otherwise in specific network::eth
declarations).
Restarts the network using a wrapper script that delays execution until after the Puppet agent run is finished.
This ensures that network changes aren't applied during a Puppet agent run
and potentially disrupt its other configurations and report (unless
explicitly configured otherwise in specific network::eth
declarations).
The following parameters are available in the network::service::network_manager
class:
Data type: Boolean
If puppet agent is running as service set this to true
Default value: false
This sets up a particular ethernet device config file.
See /usr/share/doc/initscripts-/sysconfig.txt for details of each option.
For bonding options see /usr/share/doc/iputils-20020927/README.bonding. Particularly, section "3.2 Configuration with Initscripts Support" and "2. Bonding Driver Options".
DEVICE is taken from $name HWADDR is pulled from facter if possible. ONBOOT is aliased to ONPARENT for alias devices
FIXME: This does require that you include 'network::redhat' to get the network service defined.
The following 3 options are passed as dhclientargs.
The following parameters are available in the network::eth
defined type:
name
auto_discover_mac
bonding
arp
autoconnect_slaves
bond_arp_interval
bond_arp_ip_target
bond_downdelay
bond_lacp_rate
bond_max_bonds
bond_miimon
bond_mode
bond_primary
bond_updelay
bond_use_carrier
bond_xmit_hash_policy
bootproto
bridge
broadcast
delay
dhclient_ignore_gateway
dhclient_request_option_list
dhclient_timeout
dhclient_vendor_class_identifier
dhcpclass
dhcp_hostname
dhcprelease
dns1
dns2
ethtool_opts
ensure
reorder_hdr
gateway
hotplug
hwaddr
ipaddr
ipv6_autoconf
ipv6_control_radvd
ipv6_mtu
ipv6_privacy
ipv6_radvd_pidfile
ipv6_radvd_trigger_action
ipv6_router
ipv6addr
ipv6addr_secondaries
ipv6init
ipv6to4_ipv4addr
ipv6to4_mtu
ipv6to4_relay
ipv6to4_routing
ipv6to4init
isalias
linkdelay
macaddr
master
metric
mtu
net_type
netmask
network
nm_controlled
nozeroconf
onboot
peerdns
physdev
persistent_dhclient
slave
srcaddr
userctl
vlan
vlan_name_type
window
auto_restart
DEVICE is taken from this variable.
Data type: Boolean
Determine whether or not the system should try and auto-discover a MAC address for the interface specified.
Default value: true
Data type: Boolean
This variable does not translate into an init script option. If you set this to true instead of false any hardware address auto-discovery will be ignored. Otherwise, the interface will attempt to auto-discover the interface. If you explicitly set hwaddr or macaddr, then this will be ignored.
Default value: false
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Integer[0,1]]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Network::BondMode]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Integer[0,1]]
Default value: undef
Data type: Optional[Network::TransmitPolicy]
Default value: undef
Data type: Network::Eth::BootProto
Default value: 'dhcp'
Data type: Optional[String]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Integer]
If hosting VMs, set delay to 0.
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Array[String]]
Default value: undef
Data type: Integer
Default value: 10080
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Simplib::Hostname]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Simplib::Host]
Default value: undef
Data type: Optional[Simplib::Host]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Enum['absent','present']
Default value: 'present'
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Simplib::Macaddress]
If you set this, you have the following options:
- Leave Blank -> Auto-detect (default)
- Set to something with ':' -> Set to MAC address (if valid)
- Set to anything else -> Leave unset and add a comment
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: String[1]
Default value: 'rfc3041'
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Simplib::IP::V6]
Default value: undef
Data type: Optional[Array[Simplib::IP::V6]]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Integer[1]]
Default value: undef
Data type: Optional[Simplib::Macaddress]
If you set this variable, it will override any setting for $hwaddr!
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Integer[1]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Boolean
EXPERIMENTAL feature to mark an interface as controlled by NetworkManager. If set, the code attempts a best-effort case to enable the interface and control it via the NetworkManager tools.
Default value: pick(fact('simplib__networkmanager.enabled'), false)
Data type: Optional[String[1]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Boolean]
Default value: undef
Data type: Boolean
Default value: false
Data type: Optional[Network::VlanType]
Default value: undef
Data type: Optional[Integer[1]]
Default value: undef
Data type: Optional[Boolean]
Restart the network if necessary due to a configuration change.
- Will use the value from the main
network
class if not set.
Default value: undef
Add a static route to an interface.
See /usr/share/doc/initscripts-*/sysconfig.txt
for details of
each option.
eth0-1.1.1.1:
interface: eth0
next_hop: 8.8.8.8
cidr_netmask: 1.1.1.1/32
auto_restart: true # <- default
network::route{ 'eth1-first-static-route':
interface => 'eth1',
cidr_netmask => "192.168.1.0/24',
next_hop => '192.168.1.1,
}
network::route{ 'eth1-second-static-route':
interface => 'eth1',
cidr_netmask => '192.168.3.0/24',
next_hop => '192.168.3.1',
}
The following parameters are available in the network::route
defined type:
Data type: String
Data type: String
Data type: Simplib::IP
Data type: Boolean
Restart the network if necessary due to a configuration change.
Default value: true
Valid bond modes for network interfaces
Alias of
Variant[Integer[0,6], Enum[
'balance-rr',
'active-backup',
'balance-xor',
'broadcast',
'802.3ad',
'balance-tlb',
'balance-alb'
]]
Valid ethernet boot protocols
Alias of Enum['none', 'static', 'bootp', 'dhcp']
Valid network transmit policies
Alias of Enum['layer2', 'layer2+3', 'layer3+4']
taken from http://lxr.free-electrons.com/source/net/8021q/vlan.c?v=2.6.32#L310
Alias of Enum['VLAN_NAME_TYPE_RAW_PLUS_VID', 'VLAN_NAME_TYPE_PLUS_VID_NO_PAD', 'VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD', 'VLAN_NAME_TYPE_PLUS_VID']