Skip to content

Commit 028fe46

Browse files
author
Todd Evanoff
committedNov 7, 2012
the http_request resource seems to have a bug in chef 0.10.10 and the workaround is only for >= 0.10.12, so doing without it.
http://tickets.opscode.com/browse/CHEF-3218
1 parent 45c4467 commit 028fe46

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
 

‎cookbooks/jenkins/recipes/default.rb

+1-11
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,7 @@
6464
backup false
6565
owner node[:jenkins][:server][:user]
6666
group node[:jenkins][:server][:group]
67-
action :nothing
68-
end
69-
70-
http_request "HEAD #{node[:jenkins][:mirror]}/latest/#{name}.hpi" do
71-
message ""
72-
url "#{node[:jenkins][:mirror]}/latest/#{name}.hpi"
73-
action :head
74-
if File.exists?("#{node[:jenkins][:server][:home]}/plugins/#{name}.hpi")
75-
headers "If-Modified-Since" => File.mtime("#{node[:jenkins][:server][:home]}/plugins/#{name}.hpi").httpdate
76-
end
77-
notifies :create, resources(:remote_file => "#{node[:jenkins][:server][:home]}/plugins/#{name}.hpi"), :immediately
67+
action :create_if_missing
7868
end
7969
end
8070

0 commit comments

Comments
 (0)
Please sign in to comment.