Questions tagged [chefdk]

Chef Development Kit (ChefDK) brings some essential tools for developing and testing Chef cookbooks.

Official page and resources: http://www.getchef.com/downloads/chef-dk/

GitHub page: https://github.com/opscode/chef-dk

52 questions
10
votes
1 answer

What's the difference between chef app and chef repo

I found there are 2 ways to generate chef repo, and be confused by their similarity. I wonder which one is the recommended way, and why chef provide those commands. Maybe they are used in different context? $ chef generate app chef-app $ chef…
Weihang Jian
  • 7,826
  • 4
  • 44
  • 55
6
votes
4 answers

I have installed chef-dk and started using berkshelf but berks upload failed

I have installed chef client 12.0.3, on top of it I have install chef-dk version 0.3.5 but why chef-dk is installing chef client version Chef: 11.18.0.rc.1 Unable to Upload cookbooks to chef server berks shelf list is working but berks upload…
user60679
  • 709
  • 14
  • 28
4
votes
1 answer

upgrade chefdk ruby version

I am on windows7 and using chefdk. Chefdk comes with ruby --version 2.1.8 but my requirement is to use ruby version 2.2.3 or later. But I am not able to find out, how to upgrade ruby which comes with chefdk. Any help will be greatly…
Giriraj
  • 83
  • 2
  • 6
3
votes
1 answer

chef provision command fails because of missing node name

I am trying to use "chef provision", which is part of the ChefDK. I have been trying to follow this article but I encounter an error when running the "chef provision"…
quat
  • 668
  • 1
  • 10
  • 16
3
votes
1 answer

test-kitchen: how to read platform specific attributes in kitchen.yml

In my .kitchen.yml config I am trying apply attributes depending on platform version. My kitchen config looks like that: platforms: - name: centos-6.3 driver_plugin: ec2 driver: image_id: ami-xxxxxxxx attributes: …
Dmitry S
  • 4,990
  • 2
  • 24
  • 32
3
votes
2 answers

Vagrant Berkshelf could not find the 'berks' executable in your PATH. When running 'vagrant up'

$ vagrant up Bringing machine 'district' up with 'virtualbox' provider... Vagrant Berkshelf could not find the 'berks' executable in your PATH. Please download and install the latest version of the ChefDK from: …
aSilveira
  • 79
  • 2
  • 10
2
votes
0 answers

Knife very slow for chef DK

I noticed that my chef commands were taking forever to execute. For example when I type knife -h it can take over a minute to run. I don't see any output when I use -VV during this wait. What could knife possibly be doing when running the help…
Xander
  • 9,069
  • 14
  • 70
  • 129
2
votes
1 answer

Not able to locate chef pem files

I installed Chef Development Kit. But I am unable to locate chef.pem and chef-validator.pem files in any directory. I tried through ls command as well. Need help.
Karan Khara
  • 100
  • 5
2
votes
3 answers

Could not load the 'vagrant' driver from the load path: Kitchen cannot find kitchen-vagrant's plugin

I've installed the latest ChefDK and running through one of the kitchen tutorials on the Chef site. When I run kitchen list, this is the error message I see: >>>>>> ------Exception------- >>>>>> Class: Kitchen::ClientError >>>>>> Message: Could not…
EmeraldAegis
  • 99
  • 3
  • 10
2
votes
2 answers

Bundle install: Gem::InstallError: listen requires Ruby version >= 2.2.3, ~> 2.2

I am looking for an answer to this github issue: https://github.com/guard/listen/issues/399 I am using Windows 7 and trying to run bundle install. I am getting the following error: mysys:# bundle install Fetching gem metadata from…
Giriraj
  • 83
  • 2
  • 6
2
votes
1 answer

Should I install cookbooks from the cookbooks from chef supermarket on server or chefdk?

Should I install cookbooks from Chef Supermarket to my ChefDK workstation and then upload them to my Chef server or should I just install supermarket cookbooks to my Chef Server? Brand new to chef just playing around with it in my environment.
Anders
  • 253
  • 4
  • 15
2
votes
1 answer

ChefDK - WinRM switching to basic auth when Domain credentials are provided.

I'm using ChefDK 0.3.5 on Windows 7 64bit. I'm having a bit of a problem trying to use Chef and WinRM to execute the chef-client command on a remote server. The command I'm issuing is below: C:\U\user1> knife winrm "fqdn:testserver.*" "netstat" -x…
FilBot3
  • 3,460
  • 6
  • 33
  • 55
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
1
vote
1 answer

Encoding::UndefinedConversionError when calling Chef update command from a Rails application

I'm building a Rails app that uses Chef-DK underthehood. What I'm trying to achieve is to execute the same code as the chef update . Here is the interesting part of the code : require 'chef-dk/command/update' chef_update =…
ZedTuX
  • 2,859
  • 3
  • 28
  • 58
1
vote
0 answers

Installing chef-dk & Inspec on Solaris

How do I install Chef-DK and Inspec on Solaris? I have Chef-Client (Version 14.5.33) installed on my Solaris machine. I tried executing: curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P inspec and curl…
Larry
  • 71
  • 5
1
2 3 4