Skip to content

Commit

Permalink
Merge pull request #68 from DataDog/67
Browse files Browse the repository at this point in the history
Add python-memcache package to memcache recipe. Fix #67.
  • Loading branch information
alq666 committed Sep 17, 2013
2 parents 21d91d4 + dfdbef5 commit 29157ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/memcache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
# }
# ]

case node["platform_family"]
when "debian"
package "python-memcache"
when "rhel"
package "python-memcached"
end

datadog_monitor "mcache" do
instances node["datadog"]["memcache"]["instances"]
end
2 changes: 2 additions & 0 deletions templates/default/mcache.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
instances:
<% @instances.each do |i| -%>
- url: <%= i['url'] %>
<% if i.key?('port') -%>
port: <%= i['port'] %>
<% end -%>
<% if i.key?('tags') -%>
tags:
<% i['tags'].each do |t| -%>
Expand Down

0 comments on commit 29157ab

Please sign in to comment.