Skip to content

Instantly share code, notes, and snippets.

@lusis
Created August 29, 2013 20:59
Show Gist options
  • Save lusis/6383332 to your computer and use it in GitHub Desktop.
Save lusis/6383332 to your computer and use it in GitHub Desktop.
Ghetto mysql gem omnibus'd with omnibus-chef. Probably won't meet ALL use cases but it works in conjunction with chef_gem "mysql" (which is automatically installed). Works with all the chef mysql resources.
name "mysql-ruby"
version "2.9.1"
dependency "ruby"
dependency "rubygems"
dependency "percona-dev"
build do
gem "install mysql -n #{install_dir}/bin --no-rdoc --no-ri -v #{version}"
end
name "percona-dev"
version "5.5.33-rel31.1-566-static-openssl-1.0.1e"
dependency "rsync"
dependency "ncurses"
source :url => "http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.33-31.1/binary/linux/x86_64/Percona-Server-5.5.33-rel31.1-566-static-openssl-1.0.1e.Linux.x86_64.tar.gz",
:md5 => "1fe2c6596d9a1f0fb6f70e348edb89fc"
relative_path "Percona-Server-5.5.33-rel31.1-566-static-openssl-1.0.1e.Linux.x86_64"
build do
command "#{install_dir}/embedded/bin/rsync -a lib/libmysql* #{install_dir}/embedded/lib/"
command "#{install_dir}/embedded/bin/rsync -a include/ #{install_dir}/embedded/include/"
command "#{install_dir}/embedded/bin/rsync -a bin/mysql_config #{install_dir}/embedded/bin/"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment