cookbook-monasca-schema/recipes/mysql.rb
Tim Kuhlman 51fd328fef Added files to get build to work
Try and create Berksfile that will work with berkshelf 2 or 3

Fixed style issues

Also, added .gitreview file

Change-Id: I47caf4930ac18bcfc62737e851fff1fe15dd9c9f
2014-08-15 10:12:23 -06:00

17 lines
325 B
Ruby

# encoding: UTF-8#
#
# Temporary way of loading in the mysql schema
bash 'mon_schema' do
action :nothing
code 'mysql -uroot -ppassword < /var/lib/mysql/mon.sql'
end
cookbook_file '/var/lib/mysql/mon.sql' do
action :create
owner 'root'
group 'root'
source 'mysql/mon.sql'
notifies :run, 'bash[mon_schema]'
end