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

undefined method `poise_service_user' for cookbook: newrelic-infra

I am trying to setup newrelic infra chef cookbook for my project using chef solo. Following the guidelines listed in their docs: Configure New Relic Infrastructure using Chef Goal: Start the newrelic-infra service in the ubuntu box. The steps…
InquisitiveGirl
  • 667
  • 3
  • 12
  • 31
2
votes
1 answer

chef-solo getting logs from a bash script

I am executing a shell script via chef like below execute 'Run postgres data migration' do command '/home/ubuntu/build-target/infra-base/psql10_migration.sh' live_stream true action :run only_if {…
tuk
  • 5,941
  • 14
  • 79
  • 162
2
votes
2 answers

Provisioning Vagrant box with chef-solo and vagrant

I want to spin up a Vagrant box and provision a LAMP stack using chef-solo and berkshelf. Here's the steps I take: berks cookbook my_project Then in Berksfile: site :opscode cookbook 'wordpress', '~> 3.0.0' cookbook 'apache2', '~> 3.2.2' cookbook…
stoebelj
  • 1,536
  • 2
  • 14
  • 31
2
votes
1 answer

Error creating a database with Chef using database cookbook

I'm provisioning a Vagrant bento/centos6.7 box using chef_solo provisioner. I'm using berkshelf-plugin for the cookbook dependencies. My project folder looks like this: |── Vagrantfile |── cookbooks └── my_cookbook |── Berksfile …
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
2
votes
1 answer

Why is the java cookbook depending on so many other cookbooks?

I'm trying to run the open-source Java cookbook using chef-solo and although it shouldn't require any other cookbooks, chef keeps saying that a cookbook required to run this one is missing. First it asked me to install apt, then homebrew, then…
ninesalt
  • 4,054
  • 5
  • 35
  • 75
2
votes
2 answers

is there any way to get value of a vagrant autocorrect port forward in a script?

I'm using Vagrant and Chef-zero to deploy test servers and one of the attributes that the program I'm testing requires is it's service URL. With the following lines in my Vagrant file: config.vm.network :forwarded_port, guest: 80, host: 8000,…
Ian Turton
  • 10,018
  • 1
  • 28
  • 47
2
votes
3 answers

How to use cookbook_file in conjunction with bash?

I am writing a chef recipe using the below logic: if grep -q -i "release 6" /etc/redhat-release then upload **file1** using cookbook_file resource else if grep -q -i "release 7" /etc/redhat-release then upload **file2** using…
meallhour
  • 13,921
  • 21
  • 60
  • 117
2
votes
1 answer

Opsworks with Chef 12 can't access deploy ssh_key

Per the OpsWorks documentation with Chef v11 or earlier you could access a deploy key by doing: include 'deploy' key = node[:deploy]['appshortname'][:scm][:ssh_key] However per OpsWorks with Chef 12 documentation: To migrate your recipe code that…
bdx
  • 3,316
  • 4
  • 32
  • 65
2
votes
1 answer

Unable to find cookbook template when using Berkshelf

I'm using chef-solo and maintaining community cookbooks using berkshelf. Installed iptables cookbook using berkshelf recently and it threw the following error once I ran chef-solo. RuntimeError ------------ File…
2
votes
1 answer

sequence of execution in Chef

I'm a bit new to chef. I'm just wondering if chef resources are like node-js. For example, recipe.rb resource1 'foo' do property value end resource2 'bar' do property value end Consider that resource1 is a heavy weight process and…
Prashanth
  • 1,294
  • 3
  • 13
  • 30
2
votes
1 answer

Issue with chef solo - unable to find cookbooks

I've recently been attempting to use Chef to provision my local development environment, however I am unable to get Chef to recognize where cookbooks are located. I am wondering if anyone can help shed some light on what it is I am missing? I have…
Voek
  • 21
  • 1
2
votes
1 answer

rpm and Yum don't believe a package is installed after Chef installs

Running chef-solo (Installing Chef Omnibus (12.3)) on centos6.6 My recipe has the following simple code: package 'cloud-init' do action :install end log 'rpm-qi' do message `rpm -qi cloud-init` level :warn end log 'yum list' do …
ModulusJoe
  • 1,416
  • 10
  • 17
2
votes
0 answers

Chef - difference between knife.rb and solo.rb

When I run chef-solo without specifying the -c solo.rb parameter, it throws a warning [2015-06-25T14:53:04-04:00] WARN: ***************************************** [2015-06-25T14:53:04-04:00] WARN: Did not find config file: /etc/chef/solo.rb, using…
user2490003
  • 10,706
  • 17
  • 79
  • 155
2
votes
1 answer

Chef Knife not saving changes with editor

I want to create a role with knife. So I run: > knife role create beautifulprayer ERROR: RuntimeError: Please set EDITOR environment variable No problem! Just add the editor. Afterwards: > knife role create beautifulprayer This opens the editor…
Mohamed El Mahallawy
  • 13,024
  • 13
  • 52
  • 84
2
votes
3 answers

Write users to .htpasswd in chef recipe

In a chef recipe invoked by chef-solo / vagrant I'm trying to write a .htpasswd file from an object of users. I specify the users in vagrantfile like this... chef.json = { :apache => { ... :my_users => { …
phpPhil
  • 906
  • 1
  • 9
  • 28