projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c55255c
)
Set interface MTU correctly
author
Tom Hughes
<tom@compton.nu>
Fri, 17 May 2019 07:51:23 +0000
(08:51 +0100)
committer
Tom Hughes
<tom@compton.nu>
Fri, 17 May 2019 07:51:23 +0000
(08:51 +0100)
cookbooks/networking/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/networking/recipes/default.rb
b/cookbooks/networking/recipes/default.rb
index f6015a17eb6d692d460236569b68441edf3ca55f..822f9042f1c0c89929b05e228e05aa679c4b2ed6 100644
(file)
--- a/
cookbooks/networking/recipes/default.rb
+++ b/
cookbooks/networking/recipes/default.rb
@@
-76,6
+76,10
@@
node[:networking][:interfaces].each do |name, interface|
deviceplan["addresses"].push("#{interface[:address]}/#{prefix}")
+ if interface[:mtu]
+ deviceplan["mtu"] = interface[:mtu]
+ end
+
if interface[:bond]
deviceplan["interfaces"] = interface[:bond][:slaves].to_a