Skip to content

Instantly share code, notes, and snippets.

@craigw
Created April 8, 2010 21:46
Show Gist options
  • Save craigw/360590 to your computer and use it in GitHub Desktop.
Save craigw/360590 to your computer and use it in GitHub Desktop.
execute "create-application-database" do
command "/usr/bin/mysql -u root -p#{node[:mysql][:server_root_password]} --exec='CREATE DATABASE IF NOT EXISTS `#{node[:company_name][:application_name][:database][:name]}`'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment