Skip to content

Instantly share code, notes, and snippets.

@SaschaMoellering
Created March 26, 2014 16:18
Show Gist options
  • Save SaschaMoellering/9787085 to your computer and use it in GitHub Desktop.
Save SaschaMoellering/9787085 to your computer and use it in GitHub Desktop.
include_recipe "graphite"
begin
r = resources(:template => "#{node['graphite']['base_dir']}/conf/storage-schemas.conf")
r.cookbook "my-cookbook"
rescue Chef::Exceptions::ResourceNotFound
Chef::Log.warn "could not find template to override!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment