Questions tagged [chef-zero]

Questions regarding Chef zero server

Chef zero project made for testing and solo purposes of Chef server

Simple, easy-run, fast-start in-memory Chef server for testing and solo purposes

Github: https://github.com/chef/chef-zero

39 questions
0
votes
1 answer

Chef Custom Resource Guards

I have a custom resource (in a my cookbook's /resources folder in a file called dsc_class.rb). Basically, this is a way of invoking a DSC class resource easily without installing it and using the full DSC engine. resource_name…
Jeff
  • 35,755
  • 15
  • 108
  • 220
0
votes
1 answer

Vagrant chef provision with Berkshelf ignores environment versions

Our current setup is that we want to re-use a chef cookbook provided by our server administrators to provision our development environments. Problem is, that we cannot change the original cookbook nor want to use the exact recipes (due to some parts…
Fge
  • 2,971
  • 4
  • 23
  • 37
0
votes
1 answer

kitchen converge on chef_roles using chef_zero doesn't expand run_list

Issue: I was trying to use chef_zero to test my cookbook roles specified in ruby DSL format, but when I tried to do kitchen converge. It looks like it's not able to expand the role specified in kitchen.yml. How to Resolve: Is it not possible to use…
bablu
  • 75
  • 4
  • 11
0
votes
1 answer

Create user for Kitchen use

I have a set of Chef scripts that make use of the 'ubuntu' user on our servers I have now started trying to get Kitchen working on doing testing but it sets up with the 'vagrant' user so when running my scripts I get a UserIDNotFound error Is there…
Olly W
  • 347
  • 3
  • 10
0
votes
1 answer

Why are the node attributes in the Test Kitchen generated dna.json not being included in my chef-shell execution?

Using the following commands I am able to get chef-shell to execute, pulling in all of my cookbooks and data bags: kitchen login cd /tmp/kitchen sudo -E /opt/chef/embedded/bin/chef-zero -d sudo knife cookbook upload -a -c client.rb sudo knife upload…
0
votes
2 answers

Chef-Zero + AWS + Role Override Attributes

I'm new to Chef and AWS and I'm learning how to deploy a cluster, throw Chef, to AWS Ec2. For that I'm using chef-provisioning-aws. I'm executing chef-client from my workstation directly to AWS, I don't have a chef-server (use chef-zero). This is…
BAndrade
  • 107
  • 1
  • 8
0
votes
1 answer

How do I specify the platform with chef-gem?

Usually you install a platform-dependant gem like this: gem install sys-proctable -q --no-rdoc --no-ri -v "0.9.3" --platform mswin32 How do I pass the --platform parameter with chef_gem? Best, -Iulian
Iulian
  • 319
  • 4
  • 13
0
votes
0 answers

Searching with chef-zero non working as with chefserver

I have a problem when using search inside a chef recipe: When my cookbook runs using chefserver, the next search is successfull: search(:node, %Q{nginx_vhosts_#{name}:*}) When my cookbook runs using chef-zero (with kitchen) it is not successful,…
albs
  • 13
  • 4
0
votes
2 answers

Chef-Provisioning-Vagrant: Wheres the machine?

I'm attempting to use Chef-Provisioning to spin up some Vagrant VMs. The chef-client -z provision.rb command runs and successfully completes. I know that the machine, or something exists out there because it idempotently completes this run with no…
1 2
3