Permalink
Browse files

Install packages with 'action :upgrade'

  • Loading branch information...
1 parent 091f202 commit cc19d8f85abf1e31f66fb0abc1e51ebeed50dd26 @saschpe saschpe committed Jul 31, 2012
Showing with 12 additions and 4 deletions.
  1. +12 −4 chef/cookbooks/network/recipes/default.rb
@@ -352,7 +352,9 @@ def crowbar_interfaces()
sort_interfaces(res)
end
-package "bridge-utils"
+package "bridge-utils" do
+ action :upgrade
+end
## Make sure that ip6tables is off.
#bash "Make sure ip6tables is off" do
@@ -385,8 +387,12 @@ def crowbar_interfaces()
case node[:platform]
when "ubuntu","debian"
- package "vlan"
- package "ifenslave-2.6"
+ package "vlan" do
+ action :upgrade
+ end
+ package "ifenslave-2.6" do
+ action :upgrade
+ end
utils_line "8021q" do
action :add
@@ -407,7 +413,9 @@ def crowbar_interfaces()
end
end
when "centos","redhat"
- package "vconfig"
+ package "vconfig" do
+ action :upgrade
+ end
if node["network"]["mode"] == "team"
new_interfaces.keys.each do |i|

0 comments on commit cc19d8f

Please sign in to comment.