Skip to content

Commit

Permalink
[linux] update apt and yum repository definitions for new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
cwjohnston committed Feb 7, 2017
1 parent 2acc6d3 commit 9b4871f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/_linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
apt_repository "sensu" do
uri node["sensu"]['apt_repo_url']
key "#{node['sensu']['apt_repo_url']}/pubkey.gpg"
distribution "sensu"
distribution node["lsb"]["codename"]
components node["sensu"]["use_unstable_repo"] ? ["unstable"] : ["main"]
action :add
only_if { node["sensu"]["add_repo"] }
Expand All @@ -48,7 +48,7 @@
repo = yum_repository "sensu" do
description "sensu monitoring"
repo = node["sensu"]["use_unstable_repo"] ? "yum-unstable" : "yum"
baseurl "#{node['sensu']['yum_repo_url']}/#{repo}/$basearch/"
baseurl "#{node['sensu']['yum_repo_url']}/#{repo}/$releasever/$basearch/"
action :add
only_if { node["sensu"]["add_repo"] }
end
Expand Down

2 comments on commit 9b4871f

@jkugler
Copy link

@jkugler jkugler commented on 9b4871f Mar 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are hitting the issue of using the 'sensu' distribution, which has nothing newer than 0.20.x, so really need this feature (distribution node["lsb"]["codename"]) When might this change make it to a release. I see it's been almost two months. Soon...? :)

@jkugler
Copy link

@jkugler jkugler commented on 9b4871f Mar 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From cwj in #sensu:
[15:10] hi pedahzur. we're using github milestones to track progress toward release, e.g. https://github.com/sensu/sensu-chef/milestone/6
[15:10] #520 is the real blocker there, and at this point i am of the opinion that we should punt it to another future release.

Please sign in to comment.