Skip to content

Instantly share code, notes, and snippets.

@CharlieSu
Created September 6, 2010 14:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save CharlieSu/a435155e5f35bc7526a4 to your computer and use it in GitHub Desktop.
Save CharlieSu/a435155e5f35bc7526a4 to your computer and use it in GitHub Desktop.
cookbook_file "/etc/init.d/tomcat6" do
source "tomcat6"
mode 0755
owner "root"
group "root"
end
template "/usr/bin/dtomcat6" do
source "dtomcat6.erb"
mode 0755
owner "root"
group "root"
end
service "tomcat6" do
case node[:platform]
when "centos"
service_name "tomcat6"
else
# name "tomcat"
end
action :nothing
supports :status => false, :start => true, :stop => true, :restart => true
end
@rantav
Copy link

rantav commented Sep 7, 2010

so what should I put in templates/dtomcat.erb?

I get this when I run:
ERROR: Re-raising exception: Chef::Exceptions::FileNotFound - cookbook tomcat6 does not contain file templates/dtomcat6.erb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment