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 do I setup cookbooks in git for berkshelf?

We have an internal git server using Gitlab, say, http://git-server.domain.com. I created a "project" group, and pushed a cookbook so, according to git, the cookbook is accessible via http://git-server.domain.com/project/mycookbook.git. Now I have…
Chris F
  • 14,337
  • 30
  • 94
  • 192
2
votes
1 answer

Chef PHP Cookbook RecipeNotFound: could not find recipe client for cookbook mysql

I'm using chef for the first time, trying to get my head around recipes and cookbooks. I receiving the error 'mysql::client' fails after configuring the standard php cookbook which I'm currently doing in my roles file: run_list( …
Darren
  • 173
  • 1
  • 10
2
votes
2 answers

Vagrant + Chef box throwing "uninitialized constant Opscode::Mysql"

Here's the output of vagrant up (after a vagrant destroy) of the box in question (vagrant provision results in the same error): ==> mongos-zend: ================================================================================ ==> mongos-zend: Recipe…
lostphilosopher
  • 4,361
  • 4
  • 28
  • 39
2
votes
1 answer

Bundler error when executing berks command from a rake task on windows

I wrote a rake task to execute the berks package command on a Berksfile in a sub-directory: task :cook do `berks package ./cookbooks.tar.gz -b ./cookbook/Berksfile` end I've also tried these variations: task :cook do …
JoelWilson
  • 404
  • 3
  • 13
2
votes
3 answers

Chefdk berkshelf and vagrant "found a directory cookbooks in the cookbook path, but it contains no cookbook files. skipping"

Main questions Why doesn't chef see cookbook files in the cookbook path? How can I solve it? Installed already rbenv chefdk vagrant-berkshelf plugin Things I did already put this in my .zshrc eval "$(rbenv init -)" export…
Extranion
  • 588
  • 8
  • 25
2
votes
3 answers

Package a chef environment and run on a separate provisioning server

We have made some cookbooks in order to set up an environment that runs our software solution. These cookbooks are located on two git servers and depend on public cookbooks (we're using berkshelf). We need to provision our software solution into…
StFS
  • 1,639
  • 2
  • 15
  • 31
2
votes
1 answer

vagrant 1.6.3 unable to install berkshelf 2.0.1 on mac osx

I'm facing this issue running vagrant plugin install vagrant-berkshelf --plugin-version ">= 2.0.1" I get this error An error occurred while installing dep_selector (1.0.3), and Bundler cannot continue. Make sure that gem install dep_selector…
actual_kangaroo
  • 5,971
  • 2
  • 31
  • 45
2
votes
1 answer

Installing berks on centos

I am trying to install berks on centos using command: [root@ip~]#gem install berkshelf --no-ri --no-rdoc After installing I have verified whether berks have been installed using the command: [root@ip~]# berks -v -bash: berks: command not…
user3086014
  • 4,241
  • 5
  • 27
  • 56
2
votes
1 answer

Can I move parts of chef.json to databags?

I'm using vagrant + chef-solo + barkshelf plugin. In my Vagrantfile I have this: chef.json = { "postgresql" => { "password" => { "postgres" => "password" } }, "database" => { "create" => ["chembl_18"] }, "build_essential"…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
2
votes
1 answer

precise64 vagrant box provisioning with Chef-solo fail

Installed on Mac OS X 1.9.2 Maverick vagrant chef-dk Initialized vagrant box vagrant init . Berksfile source "https://api.berkshelf.com" cookbook "vim" cookbook "git" cookbook "npm" cookbook "nvm" cookbook "nodejs" Fetched cookbooks $ berks…
zabumba
  • 12,172
  • 16
  • 72
  • 129
2
votes
1 answer

`gem install berkshelf` in windows fails

I'm using this package to use chef in windows. http://www.opscode.com/chef/install.msi When I run $ gem install berkshelf, I got this error. How can I fix this error? Temporarily enhancing PATH to include DevKit... Building native extensions. This…
ironsand
  • 14,329
  • 17
  • 83
  • 176
2
votes
1 answer

Upgrade from Vagrant 1.3.5 to 1.4.3. Fails on `vagrant-berkshelf` plugin

Note - this question is also posted in https://groups.google.com/forum/#!topic/vagrant-up/aZOs1YXmvhI Setup C:\Users\Kevin>vagrant -v Vagrant 1.4.3 C:\Users\Kevin>VBoxManage -version # VirtualBox version 4.3.10r93012 C:\Users\Kevin>vagrant plugin…
Kevin Meredith
  • 41,036
  • 63
  • 209
  • 384
2
votes
1 answer

Berksfile syntax questions

I've been hunting for detailed documentation on what goes into a Berksfile, but all I've found is examples, and "you can do this" informal stuff. (This includes the material at http://berkshelf.com ...) Q1: What is the basic syntax of a…
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
2
votes
2 answers

How to set Chef Cookbook Dependencies in metadata file

The issue I have is that there are cookbooks that exist on github with the same name as a cookbook on the chef cookbook site (monit is the cookbook). I am write a cookbook and want to use the github version, however berkshelf pulls the version from…
rkesters
  • 108
  • 6
2
votes
1 answer

chef-solo run list not expanding to include dependencies with vagrant and berkshelf

I'm using vagrant with chef-solo and berkshelf. To be honest I'm new to all three of them so maybe biting off more than I can chew here, but I'm trying to make a very simple cookbook which installs a postgres database. The error run into first of…
Harry Wood
  • 2,220
  • 2
  • 24
  • 46