Refer to files, directory in other cookbook


#1

Hi

Does anyone knows how to in recipe one cookbook use to file, directory
of other cookbook ?
remote_directory and cookbook_file seems to work only with file inside
the cookbook


ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addresses. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.


#2

Set the cookbook parameter of the template/cookbook_file resource

http://wiki.opscode.com/display/chef/Resources#Resources-CookbookFile
http://wiki.opscode.com/display/chef/Resources#Resources-Template

HTH,
Dan DeLeo

On Wed, Sep 22, 2010 at 7:54 AM, le.huy@ingdirect.es wrote:

Hi

Does anyone knows how to in recipe one cookbook use to file, directory of
other cookbook ?
remote_directory and cookbook_file seems to work only with file inside the
cookbook


ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.
Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.


#3

For templates you do it as below - try the same for cookbook_file

template “/foo/bar” do
source "bar.erb"
cookbook "my-other-cookbook"
end

-ash

On 22 Sep 2010, at 15:54, le.huy@ingdirect.es wrote:

Hi

Does anyone knows how to in recipe one cookbook use to file, directory of other cookbook ?
remote_directory and cookbook_file seems to work only with file inside the cookbook