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

Berks upload not working in ChefDK Berkshelf

berks upload -d gives: There was an error connecting to the Chef Server Chef Development Kit Version: 2.4.17 berks version: 6.3.1 Here's my config.json { "chef": { "chef_server_url": "" }, …
0
votes
1 answer

I have installed chefdk In my workstation and created a directory called chef-repo

I have a question here. I have installed chefdk In my workstation and created a directory called chef-repo. Now my question is how can I test the cookbook? And the bin folder is having all the binaries related to chefdk location /opt/chefdk/ From…
0
votes
0 answers

Vagrant Berkshelf could not find the 'berks' executable in your PATH

I have installed vagrant 1.9.5 and chefdk 2.0.28 in windows Also added D:\opscode\chefdk\bin\ in path. But when I tries to run 'vagrant up' command, I get following error. Bringing machine 'project' up with 'virtualbox' provider... Vagrant…
swapnil shahane
  • 243
  • 1
  • 4
  • 13
0
votes
1 answer

ChefDK 2.0.28 error - "can't modify frozen String"

Simply trying to generate a new skeleton recipe is giving me an error: chef generate recipe appd_agent ================================================================================ Recipe Compile Error in…
TyMac
  • 783
  • 2
  • 9
  • 32
0
votes
2 answers

Chef Workstation: Remote Access

I am currently working to setup Chef for configuration management. I have setup a Chef Workstation and have a Hosted Chef Server. Is it possible to remotely access the workstation, eliminating the need to create multiple workstations throughout the…
J0991
  • 977
  • 2
  • 9
  • 16
0
votes
1 answer

chef bootstraping clinet installing on plain AWS EC2 instances

I am trying to learn Chef and started installing its components. I have three micro EC2 RHEL7.X instances running on AWS. In those, one EC2 configured as chef-server, second Ec2 as workstation perfectly. But, when i try to bootstrap third EC2 from…
rakeeee
  • 973
  • 4
  • 19
  • 44
0
votes
3 answers

can I use a local downloaded image in kitchen.yml

I am a Windows 10 user. Installed VMbox, Vagrant in my local. I want to do kitchen test and do changes before I work on Openstack staging environment. But every time I do kitchen test it downloads the imaged from web and takes a while to create the…
Raashi
  • 121
  • 1
  • 2
  • 9
0
votes
1 answer

Error after upgrading to chefDK 0.19.6-1 bash: /usr/local/bin/knife: /usr/bin/ruby2.1: bad interpreter: No such file or directory

Upgraded chefdk and i'm getting this error runing knife bash: /usr/local/bin/knife: /usr/bin/ruby2.1: bad interpreter: No such file or directory why is my /usr/local/bin/knife calling /usr/bin/ruby2.1 Anyway i changed the /usr/local/bin/knife file…
0
votes
0 answers

chef-dk install on windows

I'm having problems following the learn chef tutorials on the chef site. I am upto managing a windows node. I've downloaded and installed chef-dk and trying to get the commands to work. Chef verify fails and any chef commands don't work. Rebooted…
John Fox
  • 747
  • 1
  • 13
  • 28
0
votes
1 answer

How can I run Chef Install from a C# application

I am trying to figure out a way to run Chef Install to generate Chef policy files in my C# Azure Service Fabric Application. Unfortunately I not having much luck finding information to support this activity.
Ryan Fisch
  • 2,614
  • 5
  • 36
  • 57
0
votes
1 answer

AWS OpsWorks Chef 12 Stack - Chef/ChefDK Basics

I've started to dive into AWS DevOps and I'm trying to use the AWS Chef 12 Stack. I'm brand new to Chef but I have downloaded the ChefDK on my Mac (10.11.4) and successfully created my first Cookbook directory running the chef generate cookbook…
Corey
  • 481
  • 2
  • 5
  • 11
0
votes
1 answer

How to get full pry debugging session working within chefdk

I am unable to get the pry-stack_explorer and pry-byebug gems to work while trying to debug inspec from a bundle exec command. When I open pry by itself I have the show-stack command available to me. When I place a require 'pry' and binding.pry…
Michael Hedgpeth
  • 7,732
  • 10
  • 47
  • 66
0
votes
0 answers

Berkshelf not working after berks install

I run Berks Install inside my cookbook. So for example let's say I clone Jenkins to my computer and navigate to that cookbook in my chef-repo I get an error. SO after I run it I see all of the dependencies being downloaded however when I go to…
Anders
  • 253
  • 4
  • 15
0
votes
1 answer

Using berkshelf with ChefDK and the Chef Supermarket

I'm brand new to Chef and linux so forgive me if this questions is blatantly obvious or if I'm doing this horribly wrong. So far I have managed to set up a basic standalone Chef server on an Ubuntu 14.04 instance that is running in my network. I…
Anders
  • 253
  • 4
  • 15
0
votes
1 answer

automatically install missing cookbooks?

When I upload some cookbooks to my Chef Server it says that I'm missing cookbooks. It allows me to upload the cookbook to the server doesn't show it in my server I'm assuming because it's missing some of the cookbooks it depends on. is there a way…
Anders
  • 253
  • 4
  • 15