Skip to content

Instantly share code, notes, and snippets.

@webframp
Created January 10, 2012 23:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webframp/1591849 to your computer and use it in GitHub Desktop.
Save webframp/1591849 to your computer and use it in GitHub Desktop.
chef recipe for librato collectd plugin
#
# Cookbook Name:: collectd_plugins
# Recipe:: librato
#
# Copyright 2012, Sean Escriva <sean.escriva@gmail.com>
#
case node.platform
when "ubuntu", "debian"
package "libpython2.7"
end
cookbook_file File.join(node[:collectd][:plugin_dir], "collectd-librato.py") do
owner "root"
group "root"
mode "644"
end
librato_creds = data_bag_item("librato", node.chef_environment)
collectd_python_plugin "collectd-librato" do
options( :email => librato_creds["email"],
"APIToken" => librato_creds["api_key"] )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment