Skip to content

Instantly share code, notes, and snippets.

@gagomes
Last active January 24, 2017 12:00
Show Gist options
  • Save gagomes/fdc45cb0d39644495bc2fbf84971b668 to your computer and use it in GitHub Desktop.
Save gagomes/fdc45cb0d39644495bc2fbf84971b668 to your computer and use it in GitHub Desktop.
chef-one-liners

Get a list of nodes and their runlists matching a given recipe

knife exec -E 'nodes.find("recipe:*elasticsearch*") { |n| puts "hostname: #{n.name} runlist: #{n.run_list}" }'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment