Hello,
I am troubleshooting an issue that involved the versions of cookbooks pinned by
our roles vs the cookbook versions uploaded by berks upload. We have our own
cookbooks which set attributes etc and then call community cookbooks, then
those call other cookbooks. It would be tremendously helpful to see the
version (or gitref) of the compiled cookbook list: is there any way to do this?
Is it possible to pass a bootstrap option that will append the version of each
cookbook?
In this particular case I was able to track down the pinned version that needed
to be bumped but it took awhile and I was hoping for the future that I could
log or display these versions at bootstrap.
This was addressed a few months ago on the list. The suggestion if I recall was to use this:
And also consider checking out:
The former we have in our base cookbook and it's super useful, although more for debugging than logging. The latter I have no direct experience with...
Hello,
I am troubleshooting an issue that involved the versions of cookbooks pinned by
our roles vs the cookbook versions uploaded by berks upload. We have our own
cookbooks which set attributes etc and then call community cookbooks, then
those call other cookbooks. It would be tremendously helpful to see the
version (or gitref) of the compiled cookbook list: is there any way to do this?
Is it possible to pass a bootstrap option that will append the version of each
cookbook?
In this particular case I was able to track down the pinned version that needed
to be bumped but it took awhile and I was hoping for the future that I could
log or display these versions at bootstrap.
I’m not aware of any bootstrap flags, but you can inspect the resolved cookbooks and log them yourself. After recently fixing some version conflict issues, I’m planning on writing a cookbook that compares the resolved version of every cookbook in the runlist with the most recent version allowed in the environment, and notifies if they’re not the same.
Greg
From: nbrown@w2odigital.com [nbrown@w2odigital.com]
Sent: Wednesday, February 26, 2014 4:05 PM
To: chef@lists.opscode.com
Subject: [chef] Possible to log or export cookbook versions or refs
Hello,
I am troubleshooting an issue that involved the versions of cookbooks pinned by
our roles vs the cookbook versions uploaded by berks upload. We have our own
cookbooks which set attributes etc and then call community cookbooks, then
those call other cookbooks. It would be tremendously helpful to see the
version (or gitref) of the compiled cookbook list: is there any way to do this?
Is it possible to pass a bootstrap option that will append the version of each
cookbook?
In this particular case I was able to track down the pinned version that needed
to be bumped but it took awhile and I was hoping for the future that I could
log or display these versions at bootstrap.