Created
January 10, 2012 23:20
-
-
Save webframp/1591849 to your computer and use it in GitHub Desktop.
chef recipe for librato collectd plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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