Chef server 11 and cookbooks storage


#1

Folks,

may I ask you how I can browse cookbooks stored by chef server 11? It
looks like they are not stored as plain files so my guess is they are
somewhere in database. How I can access them?

Thanks,
Kirill.


#2

I believe they’re stored in the Bookshelf
https://github.com/opscode/bookshelf which looks like a minimal S3 API
compatible object store.

You should just be able to point a compatible S3 client towards it (I guess?)

Someone from Opscode may be able to provide more details.

Cheers,

AJ

On 31 January 2013 11:05, Kirill Timofeev kvt@hulu.com wrote:

Folks,

may I ask you how I can browse cookbooks stored by chef server 11? It looks
like they are not stored as plain files so my guess is they are somewhere in
database. How I can access them?

Thanks,
Kirill.


#3

On Wed, Jan 30, 2013 at 2:05 PM, Kirill Timofeev kvt@hulu.com wrote:

may I ask you how I can browse cookbooks stored by chef server 11? It
looks like they are not stored as plain files so my guess is they are
somewhere in database. How I can access them?

Kirill,

“knife cookbook download” is your friend.

That command helped me a lot when I accidentally deleted uncommited version
of my cookbook.

Andrey.


#4

Hi Andrey,

currently I’m playing with chef server 11 and while encountering
different issues sometime I want to see what is stored on server to have
better understanding what can be wrong. So while downloading cookbooks
using knife is definitely useful and way to go in general I’m interested
in exploring chef server data structures.

Thanks,
Kirill.

On 01/30/2013 03:38 PM, Andrey Brindeyev wrote:

On Wed, Jan 30, 2013 at 2:05 PM, Kirill Timofeev <kvt@hulu.com
mailto:kvt@hulu.com> wrote:

may I ask you how I can browse cookbooks stored by chef server 11?
It looks like they are not stored as plain files so my guess is
they are somewhere in database. How I can access them?

Kirill,

“knife cookbook download” is your friend.

That command helped me a lot when I accidentally deleted uncommited
version of my cookbook.

Andrey.


#5

On Jan 30, 2013, at 3:41 PM, Kirill Timofeev wrote:

Hi Andrey,

currently I’m playing with chef server 11 and while encountering different issues sometime I want to see what is stored on server to have better understanding what can be wrong. So while downloading cookbooks using knife is definitely useful and way to go in general I’m interested in exploring chef server data structures.

The data directory for bookshelf, the component storing cookbook content is /var/opt/chef-server/bookshelf/data/bookshelf/. The filenames correspond to md5 checksums of the corresponding cookbook content.

It isn’t yet possible to browse using an s3 client, but I like the idea of such an enhancement.

  • seth

#6

Thanks a lot for the information Seth!

On 02/01/2013 02:14 PM, Seth Falcon wrote:

On Jan 30, 2013, at 3:41 PM, Kirill Timofeev wrote:

Hi Andrey,

currently I’m playing with chef server 11 and while encountering different issues sometime I want to see what is stored on server to have better understanding what can be wrong. So while downloading cookbooks using knife is definitely useful and way to go in general I’m interested in exploring chef server data structures.
The data directory for bookshelf, the component storing cookbook content is /var/opt/chef-server/bookshelf/data/bookshelf/. The filenames correspond to md5 checksums of the corresponding cookbook content.

It isn’t yet possible to browse using an s3 client, but I like the idea of such an enhancement.

  • seth