Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- t = resources(:template => "/etc/mysql/grants.sql")
- rescue
- Chef::Log.warn("Could not find previously defined grants.sql resource")
- t = template "/etc/mysql/grants.sql" do
- source "grants.sql.erb"
- owner "root"
- group "root"
- mode "0600"
- action :create
- end
- end
Add Comment
Please, Sign In to add comment