Questions tagged [berkshelf]

Manage a Cookbook or an Application's Cookbook dependencies

Berkshelf can either mean the Berkshelf toolchain, or the directory location ("the Berkshelf") where you do the management. This location will typically contain files called Berksfile and Berksfile.lock.

218 questions
2
votes
1 answer

How can I make Berkshelf use a local path as the default site, or unset the default site?

I have a chef repository containing many cookbooks, and a Berksfile containing the following: Dir.glob('cookbooks/*/').each do |path| cookbook File.basename(path), :path => path end cookbook 'supervisor', '~> 0.5.1', :github =>…
borntyping
  • 2,931
  • 2
  • 23
  • 30
1
vote
1 answer

ChefSpec unable to find the git installed

When I am running the ChefSpec, getting the below error, though I have the git installed and the required cookbook is getting cloned before reaching this step. As I understand from the below error that, BerkShelf is unable to find the Git…
1
vote
2 answers

using berkshelf programmatically

i am managing my cookbooks with berkshelf. i would like to play a little bit with the cookbook dependency graph. for instance: given a cookbook, get its dependencies (the same as the resolver does it) given a cookbook, get depended cookbooks (same…
Mr.
  • 9,429
  • 13
  • 58
  • 82
1
vote
2 answers

Mysql Cookbook error RecipeNotFound: could not find recipe client for cookbook mysql

I'm trying to provision a server with a Chef project that relied on an older version of the mysql cookbook (5.6.3). As this particular version is not compatible with anything newer that Ubuntu 14.04, I tried updating to the latest version (8.5.1)…
Daniel Ristic
  • 710
  • 6
  • 16
1
vote
4 answers

How to unfreeze cookbook

I discovered the ability to freeze a cookbook in chef accidentally through berks upload. It does sound great to be able to prevent changes and uploads to a cookbook. But... How do you unfreeze a cookbook? I couldn't find any documentation or any…
Muradin007
  • 158
  • 14
1
vote
1 answer

Chef solo with berkshelf: cookbook not resolved

I've created this Vagrantfile's provioner section: config.vm.provision "chef_solo" do |chef| chef.add_recipe "wildfly" end I'm getting this error: ==> default: Error Resolving Cookbooks for Run List: ==> default: ==> default: Missing…
Jordi
  • 20,868
  • 39
  • 149
  • 333
1
vote
1 answer

Disable Chef/Berks SSL verification inside test kitchen

When running test kitchen, the Chef client inside VirtualBox VM isn't accepting my Chef server's self-signed certificate. $ bundle exec kitchen converge default-windows-2008r2 -----> Starting Kitchen (v1.17.0) -----> Converging…
spiffytech
  • 6,161
  • 7
  • 41
  • 57
1
vote
1 answer

How to push the changes to chef server via Berks install & berks upload when ever cookbooks are pushed to Git Master

We'd like to enforce a policy where once we merge to master and increase the chef cookbook version, it automatically runs Berks install & berks upload. Also, we'd like to receive recommendations on cookbook versioning. of 0.x.x. versus 1.x.x
sam
  • 77
  • 2
  • 11
1
vote
0 answers

Vagrant Berkshelf Plugin Error: cannot load kernel_require.rb

I am trying to use the vagrant and the Vagrant Berkshelf Plugin. I have a project directory with a Vagrantfile and a Berksfile: Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box =…
1up
  • 81
  • 7
1
vote
3 answers

How to include docker cookbook in chef?

I'm trying to define a chef recipe to install docker using the cookbook provided at this link: https://supermarket.chef.io/cookbooks/docker#readme I'm using Berkshelf so I put this line on Berkfile cookbook 'docker', '~> 2.9.6' and this on the…
Mikyjpeg
  • 1,179
  • 1
  • 13
  • 39
1
vote
1 answer

Berkshelf: hanging fetching only a specific cookbook

I am using Chef to create a customized cookbook for the ELK stack. I found an ELK stack cookbook in the Chef supermarket and I'm trying to download it as a dependency using Berkshelf. My Berksfile contains: source…
MisterStrickland
  • 947
  • 1
  • 15
  • 35
1
vote
2 answers

Error running Python on OpsWorks with Chef + Berkshelf

I'm trying to get Python 2.7 working on my OpsWorks instance but I keep running into errors starting up. My OpsWork stack is set up with Chef version 11.10 and Berkshelf version 3.2.0. My metadata.rb has the following in it: depends …
Nick Gotch
  • 9,167
  • 14
  • 70
  • 97
1
vote
1 answer

Provisioning a docker image with chef

I am trying to build a docker image that is provisioned with chef. It works for me with the following Dockerfile and chef recipe. #Dockerfile FROM centos:7 RUN yum install -y wget RUN wget…
user1753106
  • 1,176
  • 2
  • 10
  • 16
1
vote
1 answer

Get Berkshelf to resolve cookbook in same repository

I have a single chef-repo with 2 cookbooks, say cookbook-A and cookbook-B, and a local Chef server. cookbook-A depends on cookbooks from Chef Supermarket, berks install and berks upload run happily and the cookbook is now on the…
Robin Elvin
  • 1,207
  • 12
  • 28
1
vote
1 answer

Chef Kitchen can't find current cookbook during 'kitchen converge' on Windows

I had a cookbook that was working fine, and then I updated to the latest version of kitchen and now it's throwing errors during a converge. I've tried doing a converge on a cookbook that doesn't have any dependencies and that worked fine, so I'm…
Steve Johnstone
  • 576
  • 3
  • 16