Skip to content

Instantly share code, notes, and snippets.

@raphink
Created May 25, 2020 14:56
Show Gist options
  • Save raphink/7bf8dee3203d5cbfffb50ea71aa0932a to your computer and use it in GitHub Desktop.
Save raphink/7bf8dee3203d5cbfffb50ea71aa0932a to your computer and use it in GitHub Desktop.
augeas {
'eth_bond_bond0':
context => '/files/etc/network/interfaces',
changes => [
'defnode bond iface[.="bond0"] ""',
"set \$bond/post-up[1] 'ip route add 10/8 via ${gw} mtu 8900'",
"set \$bond/post-up[2] 'ip route add default via ${gw} mtu 1500'",
'set \$bond/mtu 8900',
'rm \$bond/gateway',
]
notify => Exec['restart-bond0'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment