Skip to content

Instantly share code, notes, and snippets.

@caquino
Created November 22, 2013 04:35
Show Gist options
  • Save caquino/7594905 to your computer and use it in GitHub Desktop.
Save caquino/7594905 to your computer and use it in GitHub Desktop.
include_recipe "rsyslog"
begin
t = resources(:template => "/etc/rsyslog.conf")
t.source "rsyslog.conf.erb"
t.cookbook "example"
rescue Chef::Exceptions::ResourceNotFound
Chef::Log.warn "could not find template /etc/rsyslog.conf to modify"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment