Skip to content

Commit

Permalink
Merge pull request sensu#219 from portertech/yum-3
Browse files Browse the repository at this point in the history
Disable Yum gpgcheck when using the latest Yum cookbook releases
  • Loading branch information
portertech committed Dec 19, 2013
2 parents a21b514 + b9f9477 commit 1342d2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/_linux.rb
Expand Up @@ -40,13 +40,13 @@
when "rhel"
include_recipe "yum"

yum_repository "sensu" do
repo = yum_repository "sensu" do
description "sensu monitoring"
repo = node.sensu.use_unstable_repo ? "yum-unstable" : "yum"
url "http://repos.sensuapp.org/#{repo}/el/#{node['platform_version'].to_i}/$basearch/"
gpgcheck false
action :add
end
repo.gpgcheck(false) if repo.respond_to?(:gpgcheck)
when "fedora"
include_recipe "yum"

Expand All @@ -58,13 +58,13 @@
raise "I don't know how to map fedora version #{node['platform_version']} to a RHEL version. aborting"
end

yum_repository "sensu" do
repo = yum_repository "sensu" do
description "sensu monitoring"
repo = node.sensu.use_unstable_repo ? "yum-unstable" : "yum"
url "http://repos.sensuapp.org/#{repo}/el/#{rhel_version_equivalent}/$basearch/"
gpgcheck false
action :add
end
repo.gpgcheck(false) if repo.respond_to?(:gpgcheck)
end

package "sensu" do
Expand Down

0 comments on commit 1342d2b

Please sign in to comment.