Skip to content

Instantly share code, notes, and snippets.

@webframp
Created January 11, 2012 06:39
Show Gist options
  • Save webframp/1593409 to your computer and use it in GitHub Desktop.
Save webframp/1593409 to your computer and use it in GitHub Desktop.
nifty chef run_list via map
name "collectd_server"
description "collectd server role"
run_list [ "recipe[collectd::server]" ].
concat( %w{ syslog librato cpu df disk interface memory swap }.map do |plugin|
"recipe[collectd_plugins::#{plugin}]"
end )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment