-
-
Save JangoSteve/2294823 to your computer and use it in GitHub Desktop.
Revisions
-
bsutic created this gist
Apr 3, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ desc "Install the latest stable release of MySql." task :install, roles: :db, only: {primary: true} do #run "echo #{mysql_password}" run "#{sudo} apt-get -y update" run "#{sudo} apt-get -y install mysql-server" do |channel, stream, data| # prompts for mysql root password (when blue screen appears) channel.send_data("#{mysql_root_password}\n\r") if data =~ /password/ end run "#{sudo} apt-get -y install mysql-client libmysqlclient-dev" end