Advertisement
Guest User

Custom recipe

a guest
Jan 7th, 2015
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.41 KB | None | 0 0
  1. #
  2. # Cookbook Name:: mysql_config
  3. # Recipe:: default
  4. #
  5. # Copyright 2015, YOUR_COMPANY_NAME
  6. #
  7. # All rights reserved - Do Not Redistribute
  8. #
  9. mysql_service 'default' do
  10.   port '3306'
  11.   version '5.5'
  12.   name 'localhost'
  13.   initial_root_password 'p4ssw0rd'
  14.   action [:create, :start]
  15. end
  16.  
  17. mysql_config 'default' do
  18.   source 'my.cnf.erb'
  19.   notifies :restart, 'mysql_service[default]'
  20.   action :create
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement