Can you just use notifies for those templates?
On Mar 4, 2012, at 6:29 AM, Bryan Berry wrote:
>
>
> run_time "tomcat[jira]" do
>
>
> subscribes :restart, resources(templates => ['jdbc configuration', 'jira properties'] ), :immediately
>
>
> action :start
>
>
> end
>
Like:
notifies :restart, "tomcat[jira]", :immediately
file "jira properties" do path "#{t.base}/webapps/jira/WEB-INF/classes/jira-application.properties" content <<-EOS
# generated by Chef, don't touch!
jira.home = /home/jira
EOS
owner jira_user
end
Archive powered by MHonArc 2.6.16.