Skip to content

Commit

Permalink
Add ability to disable NetworkManager on RHEL/CentOS
Browse files Browse the repository at this point in the history
NetworkManager wasn't playing nicely with the bridge
so this commit parameterises the choice and disables
it by default
  • Loading branch information
patdowney committed Jan 19, 2015
1 parent 2918ef5 commit 0d8e9f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
default[:lxc][:addr] = '10.0.4.1'
default[:lxc][:netmask] = '255.255.255.0'
default[:lxc][:network] = '10.0.4.0/24'
default[:lxc][:nm_managed] = 'no'
default[:lxc][:dhcp_range] = '10.0.4.2,10.0.4.254'
default[:lxc][:dhcp_max] = '253'
default[:lxc][:shutdown_timeout] = 120
Expand Down
1 change: 1 addition & 0 deletions recipes/rhel_bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
:bootproto => 'static',
:ipaddr => node[:lxc][:addr],
:netmask => node[:lxc][:netmask],
:nm_managed => node[:lxc][:nm_managed]
}.map do |k,v|
"#{k.to_s.upcase}=#{v.inspect}"
end.join("\n")
Expand Down

0 comments on commit 0d8e9f1

Please sign in to comment.