action :start do template "/etc/Nginx/sites-enabled/my_site" do source "Nginx_site.conf.erb" notifies :reload,"service[Nginx]" end end
当我从另一本食谱中使用它时,找不到模板Nginx_site.conf.erb,因为厨师正在寻找调用此资源的模板.
有没有办法告诉厨师在Nginx资源中查找模板&提供者食谱?
action :start do template "/etc/Nginx/sites-enabled/my_site" do source "Nginx_site.conf.erb" notifies :reload,"service[Nginx]" cookbook 'Nginx' end end