The Berksfile is the file that specifies the cookbook dependencies for a Berkshelf
Questions tagged [berksfile]
26 questions
0
votes
1 answer
Chef - Generating Berksfile on existing cookbook
A Berksfile is missing on a cookbook that's why I want to create a new one
I just want to generate a berksfile on an existing cookbook.
So when I try to run the command:
berks cookbook name_of_my_cookbook
I'm getting the following error…

Jaw. M.
- 139
- 2
- 15
0
votes
0 answers
Chef-solo: Missing Cookboks for Run List
I want to start deploying components with chef-solo.
I've also configured the solo.rb and node.json .
Whenever I run the command: chef-solo -c solo.rb -j node.json
I'm getting the following error message:
Error Resolving Cookbooks for Run…

Jaw. M.
- 139
- 2
- 15
0
votes
1 answer
Berk depedency with kitchen ci
I cannot figure out to make my cookbook run correctly with kitchen ci. This is what I wrote and execute:
kitchen.yml
driver:
name: docker
binary: docker
use_sudo: false
provisioner:
name: chef_zero
always_update_cookbooks: true
…

a-dawg
- 783
- 1
- 5
- 13
0
votes
1 answer
What is the purpose of .kitchen.yml file in the root of project generated by 'chef generate app'?
I have an old single repo of cookbooks intended for creating a complete development environment with Vagrant. I want to "refactor" it according to best practices. I want to split big cookbooks, make proper wrapper cookbooks of community cookbooks…

Kirill
- 6,762
- 4
- 51
- 81
0
votes
1 answer
Berks install not including ruby snippet
This is my berksfile:
source 'https://supermarket.chef.io'
Dir[File.expand_path('../cookbooks', __FILE__)].each do |path|
cookbook(File.basename(path), path: path)
end
metadata
I should be able to do this…

red888
- 27,709
- 55
- 204
- 392
0
votes
1 answer
How to berks update [cookbook] without updating its dependencies?
for example:
name 'my_nagios'
version '2.0.7'
depends 'nagios', '~> 7.2.6'
depends 'nrpe', '~> 1.5.2'
recommends 'python', '~> 1.4.6'
now, I did a little change to my_nagios cookbook and I only want to update itself without…

Orionpax
- 993
- 5
- 13
- 27
0
votes
1 answer
berks doesn't resolve dependency from cookbooks
I am trying to have a git repository which manages my environment. I have set of lwrp written for specific tasks. These lwrps internally depends on many community cookbooks.
Each of my cookbook has a Berksfile where I specify dependency resolution.…

Arjun K R
- 427
- 1
- 6
- 25
0
votes
2 answers
Berksfile.lock ignored?
I have the following Berksfile in my app/ directory:
source "https://supermarket.chef.io"
cookbook "apt", "~> 3.0.0"
cookbook "nodejs", "~> 2.2"
When I run berks install (version 4.3.3), I get:
Resolving cookbook dependencies...
Fetching cookbook…

jsotogaviard
- 11
- 3
0
votes
1 answer
Why to add transitional dependencies to Berksfile?
I'm developing a cookbook (my_cookbook) that has dependencies with another cookbook (another_cookbook) that has dependencies with another cookbook (another_cookbook2).
Why do I need to specify transitional dependencies in my_cookbook Berksfile…

duckhunt
- 333
- 1
- 6
- 23
0
votes
1 answer
Vagrant Provision AWS Issue
I am following the Rails App Cookbook and am facing issue with step 6 which involves provisioning an AWS instance. I received the following errors as output.
As explained in the guide, upon observing the provisioning failure, I executed vagrant up…

fr_muses
- 1,475
- 2
- 10
- 10
0
votes
1 answer
How to enable berkshelf access to Subversion repository?
I have the following Berksfile in my top level Chef repo directory.
source "https://www.mySVNrepo.com/repos/myproject/trunk"
cookbook 'helloworld', '= 0.1.0'
and when I do a berks install, I get
[root@chef trunk]# berks install
Resolving…

Chris F
- 14,337
- 30
- 94
- 192