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

chef - STDERR: The python_package resource requires pip >= 6.1.0, currently 10.0.0

I am trying to bootstrap an server. I used to use "recipe[poise-python]" to pip install packages. Now I get the below error. How do fix? * python_package[setuptools] action upgrade …
Tampa
  • 75,446
  • 119
  • 278
  • 425
6
votes
2 answers

How to override Attributes in packer chef solo provisioner

My packer code contains packer chef solo provisioner { "type": "chef-solo", "cookbook_paths": ["chef/cookbooks/vendor"], "run_list":…
krishna g
  • 461
  • 1
  • 5
  • 15
6
votes
1 answer

Turn off verbose_logging for single Chef recipes or resources

I have a recipe which copies a secret_key to my node. Actually the file content is logged into my shell. I want to turn that off for this single recipe, because I don't want the file content to be saved into my shell history. I know that it's…
coderuby
  • 1,188
  • 1
  • 11
  • 26
6
votes
2 answers

ERROR: Cookbook loaded at path(s) has invalid metadata

When I'm running: :$ vagrant provision or :$ vagrant up I have an error: nisevi@localhost processor (master):$ vagrant provision Using ssh deploy key of: /home/nisevi/.ssh/id_rsa ==> default: Chef 12.0.3 Omnibus package is already installed. ==>…
nisevi
  • 627
  • 1
  • 10
  • 27
6
votes
1 answer

The apt recipe won't install within my recipe

I am attempting to create my first Chef recipe with Vagrant and have run into an issue at the very first step. The first line of my recipe is: include_recipe "apt" But when I try and vagrant provision I get the following error: ==> default:…
Ken
  • 626
  • 1
  • 8
  • 22
6
votes
1 answer

"include_recipe" vs. Vagrantfile "chef.add_recipe". What's the difference?

Just ran nginx::source recipe on my vagrant box, and I have very unusual behaviour. When I include a recipe from the Vagrantfile (as below), everything works like a charm, chef.add_recipe("project::nginx") …
Konzulic
  • 1,743
  • 14
  • 22
6
votes
3 answers

Ruby version for Chef

Can Chef support newer versions of Ruby i.e. 2.0.0? If not , is there a reason why? In the documentation it specified up to 1.9.2 https://wiki.opscode.com/display/chef/System+Requirements+with+install (dead link)
Noel
  • 5,037
  • 9
  • 46
  • 69
5
votes
2 answers

How to use library module in Cookbook recipes

In a cookbook I have a library(client_helper.rb). A module is defined inside it. Module name is Client_helper. Here is the module code. module Client_helper # This module contains helper methods def network_zone Chef::Log.debug('network…
Biswajit Das
  • 644
  • 7
  • 26
5
votes
2 answers

Install mysql cookbook with Vagrant and Chef Solo

I'm having a really hard time figuring out how to install mysql cookbook (https://supermarket.chef.io/cookbooks/mysql) I've followed the instructions, but it's the first time i use Vagrant and Chef, and I keep getting stuck while installing the…
Ernie
  • 972
  • 1
  • 10
  • 23
5
votes
1 answer

How to properly use Roles with Chef-solo

I am not sure that I understand how roles should be used with chef-solo. More specifically I am looking for answers to the following questions: (i) What is the syntax for telling chef-solo to run with a certain role? I managed to use: chef-solo…
Grishezz
  • 59
  • 3
5
votes
1 answer

chef solo - vagrant build error

Ive been struggling with this for hours and dont seem to be making any progress. Any tips on where I should start debugging this would be appreciated. I am attempting to provision a vagrant machine and get the following error. `==> default: Running…
RMcNairn
  • 491
  • 1
  • 5
  • 20
5
votes
1 answer

Provision developer environment with chef server and vagrant without registering node

I wish to create a developer environment of a web based application which will have an application server and database server installed on a VM using vagrant. I am using open source chef server and vagrant with chef_client provisioner. However each…
Vaibhav
  • 569
  • 6
  • 31
5
votes
2 answers

How to find out version of software package installed on the node?

I'm adapting Apache cookbook to work with 2.4 Apache. Opscode cookbook is currently failing because it's generating conf file with LockFile keyword that is excluded from the list of the Apache 2.4 keywords. I want to make a general solution, and…
Konzulic
  • 1,743
  • 14
  • 22
5
votes
1 answer

How to view Chef Attributes on a Chef Solo Vagrant Node?

I'm in the process of testing a cookbook, and one of the LWRP's seems to not contain an attribute that I am expecting it to. I need to see a list of attributes that are being set on the node. Is there a way to do this within a Vagrant chef-solo…
Highway of Life
  • 22,803
  • 16
  • 52
  • 80
5
votes
2 answers

Berkshelf cookbooks are not being copied to the Vagrant directory

I am trying to provision a Vagrant machine using Chef-solo, Berkshelf, and the vagrant-berkshelf plugin. However, the provisioning fails with this error: Berkshelf::CookbookNotFound: Cookbook not found in any of the default…
kries
  • 164
  • 1
  • 9
1
2
3
34 35