Skip to content

Commit

Permalink
Restart network when configuring bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
viglesiasce committed Sep 8, 2015
1 parent 075ba5f commit 688372c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions recipes/node-controller.rb
Expand Up @@ -47,6 +47,11 @@
end

## Setup Bridge
execute "network-restart" do
command "service network restart"
action :nothing
end

network_script_directory = '/etc/sysconfig/network-scripts'
bridged_nic = node["eucalyptus"]["network"]["bridged-nic"]
bridge_interface = node["eucalyptus"]["network"]["bridge-interface"]
Expand All @@ -73,11 +78,7 @@
mode 0644
owner "root"
group "root"
end

execute "network-restart" do
command "service network restart"
action :nothing
notifies :run, "execute[network-restart]", :immediately
end

execute "Set ip_forward sysctl values on NC" do
Expand Down

0 comments on commit 688372c

Please sign in to comment.