[chef] notifications / subscribe: different cookbook


Chronological Thread 
  • From: Andrey Brindeyev < >
  • To:
  • Subject: [chef] notifications / subscribe: different cookbook
  • Date: Thu, 24 Jan 2013 15:22:40 -0800

Hi!

Is it possible to refer a template from different cookbook?

I'm trying to implement a general pam_limits cookbook for managing /etc/security/limits.conf file.

This was idea how it can be used in other cookbooks:

node.set['pam_limits']['domains'][tomcat7user]['-']['nprocs'] = 2048

service "tomcat7" do
    service_name "tomcat7"
    action :start
    subscribes :create, resources(:template => node['pam_limits']['config']), :immediately
end

When I tried to run it, I got expected error:

Cannot find a resource matching template[/etc/security/limits.conf] (did you define it first?)

How can I do that in Chef?

Andrey.



Archive powered by MHonArc 2.6.16.

§