Questions tagged [chef-solo]

Chef is an open-source systems integration framework built specifically for automating the cloud

chef-solo is an open source version of the chef-client that allows using cookbooks with nodes without requiring access to a Chef server.

In comparison to chef, chef-solo doesn't have the following features

  • Centralized distribution of cookbooks
  • Authentication or authorization

More details about chef-solo and documentation is available on the official site

523 questions
4
votes
2 answers

Using Chef Solo to provision a Windows EC2 instance and bootstrap it

I'm trying to automate our CI process for a couple of .NET apps, and in a perfect world I'd like to spin up a Windows EC2 instance for each, bootstrap the instance to install Chef Solo and then execute a Chef recipe to install some dependencies and…
Kieran Benton
  • 8,739
  • 12
  • 53
  • 77
3
votes
1 answer

Path issue in Chef12 to Chef13 upgrade

Using chef-solo on Chef12, I assume the /opt/chef/embedded/bin path is appended to the system PATH and various libraries such as openssl and makedepend work through that path. Upgrading to Chef13 with the same chef-solo command, I get errors such as…
Raamish Malik
  • 105
  • 10
3
votes
1 answer

How to get value of encrypted data bag secret within Test Kitchen

I have added data_bags_path and encrypted_data_bag_secret_key_path within kitchen.yml as follows: provisioner: name: chef_zero chef_omnibus_url: omni-url/chef/install.sh roles_path: 'test/integration/default/roles' data_bags_path:…
meallhour
  • 13,921
  • 21
  • 60
  • 117
3
votes
1 answer

What is the best way to do "chmod +x" within Chef

I am trying to run chmod +x /usr/local/bin/binaryname within chef. I have used execute resourcefor that as shown below: execute "run_binary" do command "chmod +x binaryname" cwd "/usr/local/bin" not_if "stat --format=%a…
meallhour
  • 13,921
  • 21
  • 60
  • 117
3
votes
2 answers

Resolving chef-solo cookbook dependencies

I am trying to run chef solo on my workstation to apply some settings locally. My recipe depends on several external cookbooks that I specify in both metadata.rb and Berksfile. The chef-client run fails with the error message below. I'd like to…
Aaron Bandelli
  • 1,238
  • 2
  • 14
  • 16
3
votes
4 answers

Chef doesn't create home directory for user

I have a chef recipe to create a deploy user. The user is being created when running kitchen converge. When trying to create the .ssh folder for the user it fails with because the home directory for the user does not exists. Parent directory…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
3
votes
1 answer

Vagrant Provision, Chef Error: You must specify at least one cookbook repo path

I'm trying to set up Vagrant for web development, on Windows 8.1. I've already hit the problem undefined method “cheffish” for nil:NilClass, so am using Vagrant 1.7.4 with Chef 12.3.0. I can't solve this error: ERROR: You must specify at least one…
StringsOnFire
  • 2,726
  • 5
  • 28
  • 50
3
votes
1 answer

Can the java cookbook be used to install a local copy of oracle java?

I have been trying to learn chef recently because I was planning on using it for deploying server config and server application software. I am having issues understanding how to use other people's cookbooks. For example, I want to deploy JDK8u31. …
pitchblack408
  • 2,913
  • 4
  • 36
  • 54
3
votes
3 answers

chef: How do I install a recipe without a chef server

I'm trying to learn chef and following the documentation for chef-solo found here https://docs.chef.io/chef_solo.html When running chef-solo with the following environment: name "dev" description "Development Environment" cookbook "vim-tutorial" I…
user1086419
  • 85
  • 1
  • 5
3
votes
3 answers

How to specify cookbook path in .kitchen.yml file for chef_solo provisioner?

I want to specify cookbook paths using chef_solo as a provisioner in Test Kitchen. We are not using Berkshelf or chef_zero at this time. I set cookbooks_path in my .kitchen.yml file, but it seems like the chef_solo provisioner ignores that flag. …
invict_us
  • 103
  • 3
  • 8
3
votes
1 answer

Vagrant Chef solo can't access cookbooks

I have a problem that seems to be similar to this: Berkshelf cookbooks are not being copied to the Vagrant directory, but I believe it is distinct. When I run a vagrant provision, it fails, claiming it could not load the first cookbook it tried: ==>…
rhuffstedtler
  • 488
  • 1
  • 5
  • 17
3
votes
1 answer

Status of linux service from chef recipe

How do I check the status of a Linux service from a chef recipe? Here is my scenario: I would want to perform a bunch of steps only if the service isn't running. I would like to store the status of the service in a variable(if that is possible),…
Maximus
  • 559
  • 1
  • 5
  • 19
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
2 answers

Using chef (solo) how can I set the root user's password?

I'm using the user cookbook, which is working fine for all other user accounts. I'm able to populate the root user's authorized_keys file with the keys listed in the data bag, however the password is remaining unset. Here's the contents of my data…
tommarshall
  • 2,038
  • 5
  • 23
  • 36
3
votes
3 answers

"no such file to load -- chef/provider/lwrp_base" when trying to run mysql cookbook via Vagrant using chef-solo provisioner

Alright so I am using a bunch of technologies that are new to me here, so I'm not sure how to slice up the problem. I have a little experience with vagrant, and am trying to learn Chef now. I've cloned this cookbook:…
Frank Schwieterman
  • 24,142
  • 15
  • 92
  • 130