Permalink
Browse files

Support Amazon Linux repo

  • Loading branch information...
spesnova committed May 17, 2016
1 parent bb67496 commit 499d779ae388e4101393da4fdd6537e5081b45a9
Showing with 3 additions and 1 deletion.
  1. +3 −1 recipes/default.rb
View
@@ -32,10 +32,12 @@
action :add
end
end
+ repo_url = "http://yum.mackerel.io/centos/$basearch"
+ repo_url = "http://yum.mackerel.io/amznlinux/$releasever/$basearch" if platform?('amazon')
yum_repository "mackerel" do
gpgkey gpgkey_url if yum_cookbook_ver >= Gem::Version.new('3.0.0')
description "mackerel-agent monitoring"
- url "http://yum.mackerel.io/centos/$basearch"
+ url repo_url
action :add
end
elsif platform?('debian') or platform?('ubuntu')

0 comments on commit 499d779

Please sign in to comment.