Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Do not rely on notification to enable ovs-usurp-config scripts
Browse files Browse the repository at this point in the history
With a notification, if chef-client crashes before the end, the script
will never be enabled. Just always enable it, there's no reason why we
would want to not do this in the case where we have the script.
  • Loading branch information
rhafer committed Dec 17, 2015
1 parent 20101ff commit 3e28ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chef/cookbooks/network/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ def kill_nic(nic)
end
service "ovs-ifup-#{nic.name}" do
# Don't start it here. It only needs to be executed during boot.
action [:nothing]
subscribes :enable, resources("template[/etc/init.d/ovs-ifup-#{nic.name}]")
action [:enable]
only_if { nic.kind_of?(Nic::OvsBridge) }
end
end
end
Expand Down

0 comments on commit 3e28ce7

Please sign in to comment.