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
3
votes
2 answers

Overriding default hashes without merging

I'm attempting to use the chef-logstash cookbook at lusis/chef-logstash and am having a hard time overriding the ['logstash']['instance']['server']['config_templates'] attribute. When I set this via my wrapper cookbook at wrapper-logstash, I get a…
3
votes
1 answer

How does chef-solo --daemonize work, and what's the point?

I understand the purpose of chef-client --daemonize, because it's a service that Chef Server can connect to and interact with. But chef-solo is a command that simply brings the current system inline with specifications and then is done. So what is…
odigity
  • 7,568
  • 4
  • 37
  • 51
3
votes
3 answers

Unable to Bootstrap node using Chef

I've set up a basic Chef infrastructure that contains a workstation, a hosted Chef Server and an Ubuntu Server to serve as a node. I'm using this setup at my workplace and therefore a proxy is required for internet connections. I've made the…
Archit Arora
  • 2,508
  • 7
  • 43
  • 69
3
votes
2 answers

Where is the PATH in a Chef Run (Omnibus installation) enforced/configured?

I am trying to build a development box via Vagrant/Chef-solo, based on Centos 6.4 and using vagrant-omnibus (1.1.2) to ensure the box is using the latest Chef (while creating/putting together the cookbooks, then I'll probably freeze the version).…
tnarik
  • 149
  • 1
  • 11
3
votes
2 answers

Chef-solo installs MySql and Apache2 out of order

I'm working with chef and vagrant to better automate some machine build processes and I've run into a problem I can't seem to figure out. The issue is that no matter what we do, as soon as we include our php server cookbook it pops apache2 to the…
Wyatt Barnett
  • 15,573
  • 3
  • 34
  • 53
3
votes
4 answers

Knife bootstrapping returns "Log level must be one of :debug, :info, :warn, :error, or :fatal"

When boot-strapping a VM $ knife bootstrap localhost --ssh-user vagrant --ssh-password vagrant --ssh-port 2222 --sudo The bootstrap process returns the following exception: Bootstrapping Chef on localhost localhost…
Ryan
  • 156
  • 2
  • 18
3
votes
1 answer

chef-solo + postgres result in invalid pg_hba.conf

I'm trying to setup postgres with vagrant + chef solo. I'm using the official receipt: http://community.opscode.com/cookbooks/postgresql As my Berksfile contains: site :opscode cookbook "postgresql" And my Vagrantfile chunk…
Peter Butkovic
  • 11,143
  • 10
  • 57
  • 81
3
votes
2 answers

Chef Solo get user input

I don't know why I can't find anything on the interwebs about this. I basically want to write a recipe that prompts a user for their github username/password, then posts to the github API to add an ssh key. I'm sure I can prompt a user with normal…
brad
  • 31,987
  • 28
  • 102
  • 155
3
votes
1 answer

How to install chef-solo for vagrant with knife

I am on a MAC OSX 10.8, I know this quest should be googled but I am still a bit confused. I am working on a vagrant deployment that should use chef-solo, but when I went to the opscode site, chef installers are separated into chef-client and…
user2432189
  • 153
  • 2
  • 9
3
votes
2 answers

chef -- pass an attribute hash to a resource

chef has many resources\providers\definitions, for each of which there are attributes that can be set. for instance, see this and this. by examine few definitions, it is cleat the the attributes given for a specific resource\provider\definition are…
Mr.
  • 9,429
  • 13
  • 58
  • 82
3
votes
3 answers

Chef cookbook - reload PATH

I just installed java using chef cookbook and updated PATH environment variable for all users (added new file to /etc/profile.d/). Is it possible to tell chef to reload PATH variable? When I do something like this: execute "java_check" do command…
Konrad
  • 1,605
  • 3
  • 24
  • 45
3
votes
1 answer

Playing with Vagrant and python recipe and I do not figure how I can use python_virtualenv

My Vagrantfile looks like this (some parts are missing): Vagrant.configure("2") do |config| # Provisioning config.vm.provision :chef_solo do |chef| chef.cookbooks_path = ["provisioning/chef/cookbooks"] chef.log_level =…
ohe
  • 3,461
  • 3
  • 26
  • 50
3
votes
2 answers

Where should dotfiles go in a collection of chef cookbooks?

We're slowly moving our infrastructure over to chef and building a collection of cookbooks on the way. One thing I'm not sure about is where node / role / user specific dotfiles should go. For example, we could use the rbenv cookbook to install…
Daniel Upton
  • 5,561
  • 8
  • 41
  • 64
3
votes
3 answers

How do I run chef recipes after app server is fired up

Using Amazons OpsWorks I'm able to get a PHP App Server to get initialised, it downloads our project from git and sets it up, I've got a custom recipe being run on Setup that works and downloads composer, but this gets run before the git repository…
duellsy
  • 8,497
  • 2
  • 36
  • 60
3
votes
1 answer

Error executing action `install` on resource 'chef_gem[mysql]' – installing ruby gem through Chef Solo

Using Chef 10.24.0, when including the database cookbook, include_recipe "mysql::server" include_recipe "database::mysql" the mysql gem fails to install, with the following output: [2013-03-10T19:54:29+00:00] INFO: Processing chef_gem[mysql] action…
Marius Butuc
  • 17,781
  • 22
  • 77
  • 111