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
0 answers

Vagrant hangs on mounting folders for windows VM

I'm hoping someone could please help because I don't know how to solve this! I'm using Vagrant and VirtualBox to run a Chef recipe. Essentially the recipe will create a user on a windows 2012 machine. My problem is however when I type vagrant reload…
user4219550
  • 117
  • 11
2
votes
1 answer

cookbook_name in recipe- TypeError: no implicit conversion of Symbol into String

I have the following code in my recipe but it errors. log "###" + cookbook_name + "::" + recipe_name + " " + Time.now.inspect + ": Starting execution phase" puts "###" + cookbook_name + "::" + recipe_name + " " + Time.now.inspect + ": Starting…
User3
  • 69
  • 1
  • 9
2
votes
1 answer

Chef 12.0.3: Why I can't find my own provider on Resource Collection?

I wrote my own provider which runs ok, for example: my_custom_provider "#{node['ipaddress']}" do my_attribute_1 node['ipaddress'] action :create end template '/opt/app/something.conf' do mode '0664' owner 'someuser' group 'someuser' …
WBAR
  • 4,924
  • 7
  • 47
  • 81
2
votes
1 answer

Chef Vagrant, Can't Find Folder

Chef is really confusing me. Can you help me understand why it's not working? Cliff Notes I'm using Chef-Solo (not Berkshelf or anything else) Everything works when I set it up from scratch, I can vagrant provision But if I reboot the HOST (My main…
JREAM
  • 5,741
  • 11
  • 46
  • 84
2
votes
1 answer

Chef - install a specific version of apache

I run CentOS 6.5 on my vagrant VM and I need to install a specific version of Apache (2.2.15) to make it a similar configuration to live environment. I currently have package("httpd") service 'httpd' do action [:start, :enable] end And it…
Vladimir Hraban
  • 3,543
  • 4
  • 26
  • 46
2
votes
2 answers

chef::Exception::RecipeNotFound could not find recipe default for cookbook java

I am new to chef. I am trying to run the cookbook weblogic that I downloaded from the CHEF supermarket. under cookbook, I have both weblogic & java when I run chef-solo, it is giving the error. chef::Exception::RecipeNotFound could not find recipe…
User3
  • 69
  • 1
  • 9
2
votes
2 answers

Packer provisioning docker with chef-solo gets node name not found error

I am using chef version 11.16.4 and packer v 0.7.1 with docker v1.3.0 I am having trouble getting chef-solo to run the chef-solo provisioner after it installs chef-solo. I am getting the following error: ERROR: Unable to determine node name:…
Ed Sullivan
  • 728
  • 1
  • 9
  • 23
2
votes
3 answers

Using attributes in Chef Solo JSON

Is it possible to specify attribute values in Chef Solo's JSON? I have a solo.json with a run list and I would like to specify the attributes there. The Chef documentation seems to indicate it should be possible for me to do something like: { …
Chris Worfolk
  • 33
  • 1
  • 1
  • 8
2
votes
1 answer

Can I move parts of chef.json to databags?

I'm using vagrant + chef-solo + barkshelf plugin. In my Vagrantfile I have this: chef.json = { "postgresql" => { "password" => { "postgres" => "password" } }, "database" => { "create" => ["chembl_18"] }, "build_essential"…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
2
votes
2 answers

Cannot deploy with Capistrano 3.2.1 to remote server. Errors authenticating git repo

I'm getting an SSH authentication error when deploying a Ruby on Rails 4.0.4 app with Capistrano 3.2.1 to my digital ocean app, web, and db servers. SSH keys have been added to bitbucket. Current stack: * Chef 11 * Berkshelf 2.0.13 * Rails 4.0.4 *…
gabethegrape
  • 681
  • 1
  • 6
  • 11
2
votes
1 answer

precise64 vagrant box provisioning with Chef-solo fail

Installed on Mac OS X 1.9.2 Maverick vagrant chef-dk Initialized vagrant box vagrant init . Berksfile source "https://api.berkshelf.com" cookbook "vim" cookbook "git" cookbook "npm" cookbook "nvm" cookbook "nodejs" Fetched cookbooks $ berks…
zabumba
  • 12,172
  • 16
  • 72
  • 129
2
votes
0 answers

How to set environment for node

I am trying to configure some nodes with specific run_lists depending on environment. So I created environments, then created role and specified env_run_list, and after that created node my_node_ip.json: { "chef_environment": "test", …
Dmytro
  • 2,200
  • 3
  • 20
  • 32
2
votes
1 answer

Trying to use RemoteFile from a ruby_block

I've tried to execute a RemoteFile Provider from a ruby_block using what I could cobble together from the internet. Eventually I am settled on this gist giving me the best template to go by. Essentially from what I can read there from a comment 15…
real_ate
  • 10,861
  • 3
  • 27
  • 48
2
votes
3 answers

Chef check for hostname?

It turns out I can't check for a node(host) name in Chef, so I'm trying to figure out the best way to make the following happen: If hostname is X ldap_access_filter = memberOf=<%= node['sssd_ldap']['ldap_access_node_filter'] %> else …
wsani
  • 113
  • 2
  • 2
  • 5
2
votes
1 answer

Bootstrapping issues in Chef

I have setup a basic infrastructure using chef. This includes a local chef server(ubuntu based), workstation and an ubuntu based server(to be used as the node). Please note that the entire infrastructure lies behind the firewall in my office…
Archit Arora
  • 2,508
  • 7
  • 43
  • 69