Sha256: 02f7c709e97c0a8d85f3c69ed80ae163b53a7bb6f5b5d3d8115a9a0ad1932d22
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
namespace :centos do namespace :mysql do desc "Install mysql" task :install do # Settings fetch_or_default(:mysql_admin_password_set, Proc.new { Capistrano::CLI.ui.ask('Mysql admin password (to set): ') }) # Install through package manager yum.install([ "mysql", "mysql-devel", "mysql-server" ]) # Install service sudo "/sbin/chkconfig --level 345 mysqld on" sudo "/sbin/service mysqld start" # Set admin password sudo "/usr/bin/mysqladmin -u root password #{mysql_admin_password_set}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.1.7 | lib/recipes/centos/mysql.rb |