Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created January 25, 2011 21:25
Show Gist options
  • Save adamhjk/795706 to your computer and use it in GitHub Desktop.
Save adamhjk/795706 to your computer and use it in GitHub Desktop.
node.save if node.run_list.roles.include?('mysql_master')
sleep 5 # just in case the queue takes a while
search(:node, 'role:mysql_master') do |foo|
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment