Defined Type: network::bond::redhat
- Defined in:
- manifests/bond/redhat.pp
Overview
Define: network::bond::redhat
Instantiate bonded interfaces on Redhat based systems.
See also
-
Red Hat Deployment Guide 25.7.2 “Using Channel Bonding” access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Using_Channel_Bonding.html
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'manifests/bond/redhat.pp', line 9
define network::bond::redhat (
$slaves,
$ensure = present,
$ipaddress = undef,
$netmask = undef,
$method = undef,
$family = undef,
$onboot = undef,
$hotplug = undef,
$mtu = undef,
$options = undef,
$slave_options = undef,
$mode = undef,
$miimon = undef,
$downdelay = undef,
$updelay = undef,
$lacp_rate = undef,
$primary = undef,
$primary_reselect = undef,
$xmit_hash_policy = undef,
) {
$opts = merge({ 'BONDING_OPTS' => template('network/bond/opts-redhat.erb'), },
$options
)
network_config { $name:
ensure => $ensure,
method => $method,
ipaddress => $ipaddress,
netmask => $netmask,
family => $family,
onboot => $onboot,
hotplug => $hotplug,
mtu => $mtu,
options => $opts,
}
$opts_slave = merge({
'MASTER' => $name,
'SLAVE' => 'yes',
},
$slave_options
)
network_config { $slaves:
ensure => $ensure,
method => static,
onboot => true,
hotplug => false,
options => $opts_slave,
}
}
|