templates/percona/config/rubber/deploy-percona.rb
# TODO: Make the setup/update happen just once per host
Make the setup/update happen just once per host
Make the setup / update happen just once per host
def common_bootstrap(role)
      rsudo service_stop('mysql') rescue nil
      rubber.update_code_for_bootstrap
      rubber.run_config(:file => "role/#{role}|role/db/", :force => true, :deploy_path => release_path)
      sudo_script 'reconfigure-mysql', <<-ENDSCRIPT
        server_package=`dpkg -l | grep percona-server-server-[0-9] | awk '{print $2}'`
        dpkg-reconfigure --frontend=noninteractive $server_package
      ENDSCRIPT
      sleep 5
    end
def common_bootstrap ( role ) rsudo service_stop ( 'mysql' ) rescue nil rubber . update_code_for_bootstrap rubber . run_config ( :file => "role/#{role}|role/db/" , :force => true , :deploy_path => release_path ) sudo_script 'reconfigure-mysql' , <<-ENDSCRIPT 
        server_package=`dpkg -l | grep percona-server-server-[0-9] | awk '{print $2}'`
        dpkg-reconfigure --frontend=noninteractive $server_package
       ENDSCRIPT sleep 5 end
TODO: Make the setup/update happen just once per host
TODO : Make the setup / update happen just once per host
# mysql package install starts mysql, so stop it # After everything installed on machines, we need the source tree # on hosts in order to run rubber:config for bootstrapping the db # Gen just the conf for the given mysql role # reconfigure mysql so that it sets up data dir in /mnt with correct files
role