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
3
votes
1 answer

How to use berkshelf with vagrant without the vagrant-berkshelf plugin

I am new to berkshelf and have tried a few samples using vagrant-berkshelf plugin. From the time i got to know that the vagrant-berkshelf plugin is going to get deprecated, i have been wondering if there is anyway i can use the berkshelf with…
3
votes
1 answer

Overriding Cookbook Attribute in Vagrantfile Custom JSON Data

How do you access node.override using chef.json in a Vagrant file? For example, using vagrant-berkshelf, I'm trying to install a particular Maven version based on Custom JSON Data in the Vagrantfile: chef.json = { 'maven' => { 'version' =>…
Kevin Meredith
  • 41,036
  • 63
  • 209
  • 384
3
votes
1 answer

"Cookbook not found" error with ChefSpec test

I'm trying to running my ChefSpec tests. This is my ChefSpec test: require_relative '../spec_helper' describe 'my-demo::basesystem' do let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe)} describe 'basesystem' do it "should…
Robert
  • 10,403
  • 14
  • 67
  • 117
3
votes
2 answers

vagrant-berkshelf plugin compilation (installation) error

enclosed a snippet of my console: release version: $ sudo cat /etc/*release* | grep -i distrib DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION="Ubuntu 13.10" ruby version: $ ruby --version ruby 2.0.0p299…
Mr.
  • 9,429
  • 13
  • 58
  • 82
3
votes
1 answer

Vagrant Berkshelf - Shelf Path?

Is it possible to set the path where the berkshelf plugin puts the cookbooks it installs? (As in the .berkshelf folder) I am running Windows 7. I am currently trying to install a mysql server using an opscode cookbook to a vm and here at work they…
Jessman123
  • 35
  • 2
3
votes
1 answer

Is there an equivalent of Berkshelf, but for Puppet modules?

Currently it seems that Berkshelf is limited to only managing Chef Recipes. Just wondering if there is anything equivalent to Berkshelf, but for Puppet Modules ?
David P
  • 3,604
  • 3
  • 37
  • 54
2
votes
1 answer

Could not load berkshelf

I am working on chef projects and trying to run kitchen list command. Unfortunately I am getting Could not load or activate berkshelf. I have given the command gem install berkshelf. I am running Ubuntu 18.04 and installed chefdk. THank you. Error…
ProDevelop
  • 21
  • 1
2
votes
1 answer

confused with berkshelf, chef and vagrant

I've took a look on BerkShelf documentation. I've been able to figure out it stands for managing cookbook dependencies. So, guess I'd like to build a machine with java. I've first generated my custom cookbook: chef generate cookbook custom-java My…
Jordi
  • 20,868
  • 39
  • 149
  • 333
2
votes
2 answers

Provisioning Vagrant box with chef-solo and vagrant

I want to spin up a Vagrant box and provision a LAMP stack using chef-solo and berkshelf. Here's the steps I take: berks cookbook my_project Then in Berksfile: site :opscode cookbook 'wordpress', '~> 3.0.0' cookbook 'apache2', '~> 3.2.2' cookbook…
stoebelj
  • 1,536
  • 2
  • 14
  • 31
2
votes
1 answer

Beginner confused by berkshelf and chef

I'm new to chef and berkshelf, and very confused I have tried seeking help in open board questions but no luck please help me.. Does berkshelf install my recipes along resolving the dependencies? Meaning the recipes has MySQL so after vagrant up…
SJamro
  • 21
  • 1
2
votes
1 answer

Unable to find cookbook template when using Berkshelf

I'm using chef-solo and maintaining community cookbooks using berkshelf. Installed iptables cookbook using berkshelf recently and it threw the following error once I ran chef-solo. RuntimeError ------------ File…
2
votes
1 answer

Chef missing artifact, nested github dependency

When using chef exec berks install I am getting errors relating to having a missing artefact. My tree is a -> b -> c. b and c are both hosted on github. b is able to install, but when trying to install from a I get the missing artefacts error.
jshthornton
  • 1,284
  • 11
  • 29
2
votes
2 answers

FATAL: NoMethodError: undefined method `unreachable_cookbook?' for nil:NilClass

I am new to chef and started writing a simple recipe using the Users library. My Berksfile: name@name:~/chef-repo$ cat Berksfile site :opscode cookbook "users" and then I ran: berks install and my cookbooks: name@name:~/chef-repo$ ls…
akaphenom
  • 6,728
  • 10
  • 59
  • 109
2
votes
1 answer

Berks install on cookbook cannot find itself

I have started using Berkshelf, it seems to make sense, but I can't wrap my head around how it should work. First I created a cookbook using berks cookbook mycookbook. Then I added a dependency to only find that it cannot find mycookbook when I run…
onknows
  • 6,151
  • 12
  • 65
  • 109
2
votes
1 answer

Uploading recipe changes to chef server using Berkshelf

I'm in the process of customizing community cookbooks (cassandra and elasticsearch) for use in production. From trying to get to grips with Berkshelf I have found myself uploading changes to my wrapper cookbook recipes from within my…
Gillespie
  • 2,228
  • 2
  • 18
  • 25
1 2
3
14 15