[chef] Re: Re: re-opening resources at run-time


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] Re: Re: re-opening resources at run-time
  • Date: Sun, 4 Mar 2012 18:27:26 +0100
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.52.36.2 as permitted sender) ; dkim=pass

I can't because I have to have all of those templates in place before starting tomcat for the first time

On Sun, Mar 4, 2012 at 6:24 PM, Brian Akins < "> > wrote:

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
>

Can you just use notifies for those templates?

Like:


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

notifies :restart, "tomcat[jira]", :immediately

owner jira_user

end




Archive powered by MHonArc 2.6.16.

§