Sha256: 455650295ea47324851e0b0409acf200108bd210751e6161b9d0607fa58790e6
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
if platform_family?("debian") node.set['mysql']['server_root_password'] = "root" include_recipe "mysql::server" bash 'db_create' do code "echo 'create database toaster;' | mysql -u root -p#{node['mysql']['server_root_password']}" not_if "echo \"show databases;\" | mysql -u root -p#{node['mysql']['server_root_password']} | grep toaster" end else bash "error_os" do code <<-EOH echo "ERROR: Currently supported host OSs: Debian/Ubuntu." exit 1 EOH end end
Version data entries
3 entries across 3 versions & 1 rubygems