Skip to content

Commit

Permalink
fix key url for debian and redhat
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreen committed Jul 7, 2011
1 parent 9c60e07 commit 01366b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@
package "openjdk-6-jre"

package "psmisc"
key_url = "http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key"

remote_file "#{tmp}/jenkins-ci.org.key" do
source "#{node[:jenkins][:mirror]}/debian/jenkins-ci.org.key"
source "#{key_url}"
end

execute "add-jenkins-key" do
Expand Down Expand Up @@ -119,14 +120,15 @@

when "centos", "redhat"
#see http://jenkins-ci.org/redhat/
key_url = "http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key"

remote = "#{node[:jenkins][:mirror]}/latest/redhat/jenkins.rpm"
package_provider = Chef::Provider::Package::Rpm
pid_file = "/var/run/jenkins.pid"
install_starts_service = false

execute "add-jenkins-key" do
command "rpm --import #{node[:jenkins][:mirror]}/redhat/jenkins-ci.org.key"
command "rpm --import #{key_url}"
action :nothing
end

Expand Down

0 comments on commit 01366b4

Please sign in to comment.