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

Vagrant using Ruby 1.9.3 as default

Hey all i am trying to build a vagrant vm. i am using chef-solo for provisioning and chef-rbenv to manage my versions. so in the vagrantfile i specify config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe…
legendary_rob
  • 12,792
  • 11
  • 56
  • 102
5
votes
4 answers

Using Ruby 2.0 on Amazon OpsWorks

I'd like to use Ruby 2.0 on Amazon OpsWorks, so I'm trying the following: Choose custom cookbooks and set them to my fork of https://github.com/aws/opsworks-cookbooks Update all version numbers here…
Sudhir Jonathan
  • 16,998
  • 13
  • 66
  • 90
5
votes
1 answer

Cannot install Rails gem on vagrant virtual CentOS Machine using Chef-Solo

I am trying to setup Rails environment on CentOS 6.3 64bit using Vagrant and Chef-Solo. Rails cannot be installed when using chef, with error message, Mixlib::ShellOut::CommandTimeout: rbenv_gem[rails] (main::default line 21) had an error:…
xoyip
  • 82
  • 6
4
votes
0 answers

Installing mysql2 gem in vagrant via chef-solo

I'm trying to install mysql2 gem in my vagrant machine with chef solo. I am getting the following error ERROR: mysql2_chef_gem_installer[default] (mysql2_chef_gem::default line 20) had an error: Chef::Exceptions::RecipeNotFound: could not find…
4
votes
2 answers

why is chef-client synchronization slow for local cookbooks

Background I'm running chef-client --local-mode with cookbook path set to ./berks-cookbooks these cookbooks where already downloaded by berkshelf before running chef. (chef sdk 4.0.0, berkshelf 3.2.3) Before running my scripts, chef has to run…
actual_kangaroo
  • 5,971
  • 2
  • 31
  • 45
4
votes
1 answer

chef-solo run getting metadata error after upgrading to 12.0.0

I have a few ubuntu machines that I need to have configured the same, so I use chef-solo against chef cookbooks in a shared directory mounted read-only to accomplish this. I've been using chef-solo for over a year, starting with chef version 10. …
RBWolf
  • 41
  • 3
4
votes
2 answers

How to run chef without chef server (chef solo/chef zero)

I have a set of cookbooks for provisioning web and SQL servers and they are currently used in our continuous deployment pipeline. I would like developers to be able to use the same cookbooks for setting up their local development environments…
Mike Robinet
  • 823
  • 6
  • 19
4
votes
1 answer

How can you tell if chef is running on a VM (i.e. vagrant)

I have a chef recipe that can either run on virtual machines or real machines. I need to be able to tell the difference between them inside chef, because I need to treat them differently. I've found something on the internet that said I should just…
4
votes
3 answers

Chef - How Reboot VM and continue performing actions

In a Chef recipe, I need to perform a reboot on a Node after doing some actions, and after the reboot is done, I need to continue doing another actions: Recipe: -action 1 -action 2 -reboot -action3 -action4.... I have checked some existing…
user2620348
  • 309
  • 4
  • 15
4
votes
1 answer

How to set exit codes for "status" command in init script for Tomcat6

I'm installing Tomcat6 and using the following for /etc/init.d/tomcat6: #!/bin/bash # description: Tomcat6 service # processname: java # chkconfig: - 99 1 ## Note: CATALINA_HOME and CATALINA_PID are set elsewhere.## # Source function library. .…
invict_us
  • 103
  • 3
  • 8
4
votes
2 answers

Chef workflow for new cookbooks

While building my own cookbooks I find myself constantly within this cycle: Change cookbook on my local computer Upload modified cookbook to chef server Run chef-client on remote machine Repeat Since I am new to chef, I repeat that cycle extremely…
SystematicFrank
  • 16,555
  • 7
  • 56
  • 102
4
votes
1 answer

Why does the LWRP custom definition gives me undefined method for nil:NilClass

I have problem with my custom definition of this LWRP. resources : user_postgresql. actions :create, :alter default_action :create attribute :username, :kind_of => String attribute :password, :kind_of => String attribute :database_name, :kind_of…
Robert
  • 10,403
  • 14
  • 67
  • 117
4
votes
1 answer

CHEF, how do you replace node.set/node.save in chef solo?

How do you replace node.set/node.save in chef solo? I am using node.set/node.save in this example to execute certain commands on first run-> http://docs.opscode.com/essentials_cookbook_resources_first_run.html But on chef-solo there is no…
laapsaap
  • 181
  • 11
4
votes
3 answers

chef-solo nginx recipe not picking up on my attributes

the gist of my problem is located here: https://gist.github.com/tsabat/a8f27ae6ac7d1fd3b6f7 The high-level problem is that chef-solo does not seem to pick up on attributes I set in my attriutes/default.rb file for a recipe. I recently switched to…
timsabat
  • 2,208
  • 3
  • 25
  • 34
4
votes
3 answers

How can I override the Chef node name in vagrant?

I'm developing a Chef cookbook that I'm testing with Vagrant and chef-solo. The recipes look at node.name to make certain decisions. In order to test various variants of that I would like to override that attribute for test runs from Vagrant. So…
Peter Eisentraut
  • 35,221
  • 12
  • 85
  • 90
1 2
3
34 35