zuba
zuba

Reputation: 1508

How to specify path to the cookbook in the repo in chef policy file

I got a repo inside which my cookbook resides. I need to specify the path to the cookbook inside that repo. Someting like that:

cookbook 'my-cookbook', git: 'ssh://[email protected]:7999/cc/my-cookbook.git/path/to/the/cookbook', branch: my-branch

Upvotes: 0

Views: 205

Answers (1)

coderanger
coderanger

Reputation: 54181

I haven't tried with policies but for Berkshelf it would be rel: 'path/to/cookbook' and they use the same installer system so it should work I think.

Upvotes: 1

Related Questions