Sha256: 7e6b7b2a726aeb39cd60b522aaef4df3aff0fbcf6331696ac06c5163a6195186
Contents?: true
Size: 827 Bytes
Versions: 4
Compression:
Stored size: 827 Bytes
Contents
require 'daddy/itamae' case os_version when /rhel-6\.(.*?)/ package 'mysql' do user 'root' end package 'mysql-server' do user 'root' end template '/etc/my.cnf' do user 'root' end service 'mysqld' do user 'root' action [:enable, :start] end when /rhel-7\.(.*?)/ package 'mariadb' do user 'root' end package 'mariadb-server' do user 'root' end template '/etc/my.cnf.d/daddy.cnf' do user 'root' end service 'mariadb' do user 'root' action [:enable, :start] end else raise "サポートしていないOSバージョンです。#{os_version}" end execute 'mysql_secure_installation' do user 'root' command "bash #{File.join(File.dirname(__FILE__), 'mysql_secure_installation.sh')}" only_if "mysql -u root -e 'select 1;' && test $? -eq 0" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
daddy-0.5.5 | itamae/cookbooks/mysql/install.rb |
daddy-0.5.4 | itamae/cookbooks/mysql/install.rb |
daddy-0.5.3 | itamae/cookbooks/mysql/install.rb |
daddy-0.5.2 | itamae/cookbooks/mysql/install.rb |