Created
May 25, 2020 14:56
-
-
Save raphink/7bf8dee3203d5cbfffb50ea71aa0932a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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