Chef is an open source systems integration framework built to bring the benefits of configuration management to your entire infrastructure. You write source code to describe how you want each part of your infrastructure to be built, then apply those descriptions to your servers. The result is a ...

learn more… | top users | synonyms

3
votes
1answer
158 views

knife on Windows inconsistently reads ~\.ssh\knife.rb on Management Workstation

I am implementing a new instance of (Open-source v10.12) Chef in an existing environment. Currently the environment is mostly Windows, but more Linux is being introduced. I have used Chef in a ...
3
votes
1answer
461 views

omnibus installed chef and rvm issues

I'm trying to figure out one thing and would like someone's else view on this. I installed chef on my Ubuntu server (11.10) via the awesome omnibus install. It worked perfectly fine. I was able to run ...
3
votes
1answer
1k views

Why am I getting 'undefined method' exceptions when executing 'run_list add', 'run_list remove' and 'rackspace server delete'?

[Originally posted this to opscode forum, got no response] I’m testing out a free hosted chef-server account and multiple subcommands are failing with ‘Unexpected Errors’. Perhaps my version and the ...
2
votes
1answer
455 views

Out-of-order chef recipes causing apt package install to fail

I'm writing a Chef recipe to install among other things nginx and Phusion Passenger. The short summary is that the recipes on my run list are not executing in the order I expect, and that's causing an ...
2
votes
1answer
167 views

How to manage Linux servers and tasks?

As a developer who is managing more and more Linux servers for my various projects and tasks, I'm starting to seriously think about how to manage these servers efficiently. I have come up with such a ...
1
vote
1answer
211 views

How to automatically increase the partition size of multiple Ubuntu nodes in VMware vSphere?

We have dozens of Ubuntu nodes where I have to resize the hard disk drive to different sizes. Currently I’m doing all of the following steps manually: Increase the size of each node’s virtual hard ...
1
vote
1answer
159 views

How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?

Summary How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server? Context Our ...
1
vote
1answer
318 views

How to update nginx via Chef

I am a developer who recently inherited our previous devops person's chef setup. I'm running Chef 10 server and have realized that the nginx cookbook from opscode still uses nginx version 1.2.6. Since ...
1
vote
1answer
214 views

Setting up SFTP users that are jailed to their home directories with Chef

I'm hoping someone can help me figure out how to chroot jail users to their home directories for SFTP with Chef. I've tried multiple SSH cookbooks and Googled for an answer for several days with no ...
1
vote
1answer
821 views

How to install APC on a vagrant box running Ubuntu 12.04 with PHP 5.4?

In my "Vagrant" file I have this line: chef.add_recipe("php::module_apc") But it gives me this error: [2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc ...
1
vote
1answer
51 views

Multiple identical GPG Keys. What can cause that?

I'm using OpsCode Chef to manage all my VMs, but since the last week, I'm having issues with one VM. When running chef, it hangs right at the beginning. After a bit of investigation, I found out that ...
1
vote
1answer
95 views

Chef-Server fails startup

I've installed chef-server from the chef apt repository using these instructions and everything seems to work until I try to start chef-server. I'm running Debian Squeeze in a Linux container (LXC). ...
1
vote
1answer
71 views

Server specific usernames for each SSH connection in Chef with Knife

To set a default user for each ssh connection, I would normally adjust my .ssh/config file to Host *.server1.com User joe Host *.server2.com User mike I am now using Chef. The knife tool ...
1
vote
1answer
762 views

How to use an SSH Gateway with Chef's Knife Bootstrap

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based ...
1
vote
1answer
141 views

Chef with a secured couchdb

I've installed chef , which uses couchdb. It worked fine until i've secured couchdb by creating an admin user in couchdb giving and setting require_valid_user = true in default.ini as written here: ...
1
vote
1answer
768 views

Multiple related resources in chef recipe

I need to run some commands depending on a result of previous execution, which again depends on some package being installed. On the first run, I'd expect something like: install package "XXX" get ...
1
vote
1answer
800 views

Bootstrapping servers with chef, and changing the SSH Port

I have a full set of recipes that are working to bootstrap a server at Rackspace, it configures and installs everything as needed. Now, I want to change the default port SSH runs on. This is fairly ...
1
vote
1answer
387 views

Trouble attaching more than 6 EBS volumes to EC2 instance

I'm using chef to create RAID10 arrays. Last friday morning (10/22) I was able to create arrays with 9 EBS volumes on dev/sdz1-9 with no problems I started having trouble attaching more than 6 EBS ...
0
votes
1answer
49 views

Internal Server Error when trying to upload cookbooks

I'm trying to migrate our Chef server to another box. I installed a new instance of Chef in the new box and I can access it using the default admin and password. I can also do knife node list and ...
0
votes
1answer
112 views

OpsWorks Berksfile processing failed: (Encoding::InvalidByteSequenceError)

A few hours ago all my OpsWorks stacks started failing to update_custom_cookbooks. They are all failing on "Install the cookbooks specified in the Berksfile and their dependencies" with the error: in ...
0
votes
1answer
41 views

Berkshelf Gemfile version conflict

I received the following error from the berks command when trying to init a new cookbook to use Berkshelf version 3 Could not find proper version of berkshelf (2.0.17) in any of the sources Run ...
0
votes
1answer
63 views

How to use LWRP on in AWS OpsWorks?

Ohai, ist there a way to use LWRP for Chef on AWS OpsWorks? How else would I execute this: nfs_export "/exports" do network '10.0.0.0/8' writeable false sync true options ['no_root_squash'] ...
1
vote
0answers
45 views

how do I handle a URI with spaces in a chef source attributes on Windows

I am trying to copy a package from a remote server, into my system and then use chef to install the same. Following is the code I use to copy the package remote_file 'c:/repo/OpenOffice 4.1.0 ...
1
vote
0answers
32 views

Chef - handle resources changing the network interface

I'm using chef to deploy an openvpn application in bridging mode to an ubuntu node. In my recipe i'm using a bash resource to create the bridge necessary for the vpn to work. Unfortunately the bridge ...
1
vote
0answers
518 views

Chef, installation of nokogiri with system libraries fails on Centos 6.5

I'm trying to fix a recipe that needs the gems nokogiri and savon on Centos 6.5. Since the simple chef_gem 'nokogiri' require 'nokogiri' chef_gem 'savon' require 'savon' does not work (chef says ...
1
vote
0answers
194 views

Chef gem_package not using the binary path

I'm trying to install the gems "sensu_plugin" and "mixlib-shellout", on a windows server 2008r2, from a recipe. In this last one, I have the following code : %w{ sensu-plugin mixlib-shellout }.each ...
1
vote
0answers
84 views

Chef Knife-Windows

I'm trying to bootstrap a windows 2008 R2 Server with chef and i'm receiving this error :"CScript Error: Execution of the Windows Script Host failed. (0x800A0007)". After some research i find out ...
1
vote
0answers
87 views

Why doesn't Chef use my default attributes in my development environment?

I inherited our company's Chef repository and I'm learning as I go. One issue that I've found a workaround for (but would like to understand or avoid if possible) is that attribute defaults specified ...
0
votes
0answers
37 views

How to change the execution time of the my.ini file using Chef

I'm attempting to get an existing Drupal site set up using Vagrant Drupal Development but have come across a few problems. My first is that I cannot seem to connect to the database to import my SQL ...
0
votes
0answers
21 views

Defining mock nodes in Chefspec

In the main Chefspec docs I see I can do the following RSpec.configure do |config| config.cookbook_path = '/var/cookbooks' config.role_path = '/var/roles' end however I see no reference to a ...
0
votes
0answers
59 views

Chef says cookbook doesn't exists when it does

In my runlist for one of my nodes, I have "recipe[logstash::server]". When I run chef-client on the node, the following error is thrown: The following cookbooks are required by the client but don't ...
0
votes
0answers
17 views

Knife search's result is wrong

I have question in knife search. My knife serach put wrong result. I'm typing this. knife search 'name:PR-WAS-C1' -i result is this. 6 items found PR-EU-RelayProxy-A1 PR-RelayProxy-A2 ...
0
votes
0answers
21 views

How can I use chef to configure a basic system starting from a template?

I am working on the setup of a new virtual infrastructure that will eventually become the production one. I am at the very beginning and I want to use Chef as automation tool. I've already worked with ...
0
votes
0answers
23 views

Assign chef roles to layer/instance

I'm trying to get the following cookbook running in OpsWorks: https://github.com/lusis/chef-logstash/ Following their documentation I have to assign roles to my server(s) to get stuff running. They ...
0
votes
0answers
24 views

One project configuration mechanism that will work on both Elastic Beanstalk and OpsWorks

We have an application that we are successfully deploying to Amazon's Elastic Beanstalk. We use .ebextensions/ to configure our application environment. For various reasons, we may need to begin ...
0
votes
0answers
59 views

Setting Samba passwords using Chef without storing plain text passwords in data bags

We have a server that is configured using Chef. Currently, the way that chef manages the passwords is by simply copying down the samba tdb databases and updating the shadow hashes of each user. ...
0
votes
0answers
184 views

Open Source Chef Server can't upload cookbook

I just setup the open source chef server on an Ubuntu 12.04 EC2 instance, I've setup my webui and am able to get responses from my knife commands ie: knife node list, knife client list, knife user ...
0
votes
0answers
32 views

chef admin account not working

I've installed Chef on my Ubuntu server and everything has been set up properly using sudo chef-server-ctl reconfigure. Now when I navigate in my browser to my chef machine, it won't accept the ...
0
votes
0answers
20 views

Confused on Chef Recipes and Resources

I found documentation on how to create a recipe to copy files from the chef server to my remote HTTP server. In this particular case, I have a number of "html" files under a directory called, ...
0
votes
0answers
46 views

How to update nginx in chef server managed environment

I have some servers managed by chef who are running (partly) the same software, e.g. nginx. If nginx has a security issue and there is a new version, what is the best practice to install the new ...
0
votes
0answers
77 views

chef: bash resource ignores .netrc file

I'm using a .netrc file for storing username & password because my git repo is only available via https and needs authentication. In my recipe I got bash "update code" do cwd ...
0
votes
0answers
12 views

Knife leaves stray processes on my system

I'm seeing stray knife processes on my system. I have an automated ruby script that runs bundle exec knife bootstrap against various nodes. Most of the time the knife process completes and goes away, ...
0
votes
0answers
107 views

Preferred “Chef/Berkshelf/Vagrant” Way to Change Java Versions

On a Linux box, what's the preferred, best-practice way of switching Java versions? For example - let's say that I want to build & test out my app on Java 7, and then Java 6. Here's a few ...
0
votes
0answers
44 views

Enabling chef-validator as admin from web UI

I set up a Chef-server instance on Digital Ocean following OpsCode's instructions. Everything up through Step 8 works just fine. However, I'm having trouble enabling chef-validator as an admin. ...
0
votes
0answers
123 views

Force execution of a chef script before the first one finishes

Following is section of code that is creating the problem for me. Everything works fine but then in order to upgrade percona, I need to run the 'mysql_upgrade' step while the 'mysql_safe' step is ...
0
votes
0answers
27 views

What accounts does clamav use on different Linux distros

I'm trying to fix a problem in a Chef recipe for installing / configuring ClamAV which is caused by the recipe using the wrong default user/group name for the clam service account on some platforms. ...
0
votes
0answers
184 views

Can multiple self-registered chef Nodes use the same Client identification?

When a freshly imaged machine on my network connects to my chef-server for the first time, it uses validation.pem to connect. Through this process a new Node and Client are created on the server, both ...
0
votes
0answers
711 views

How do I load JSON attributes pass via knife through chef recipes?

I have a web server that basically accepts input for a knife ec2 create server command. In my knife command, I pass in -j '{"branch":"clone"}' From documentation I thought I would be able to do ...
0
votes
0answers
865 views

vagrant - Could not find chef

New ubuntu 10.04 vagrant setup, and trying to run vagrant up $ vagrant up [default] VM already created. Booting if it's not already running... [default] Clearing any previously set forwarded ...
-1
votes
0answers
14 views

Chef-client --local-mode returning zero-length file

I am switching from chef-solo to chef-client -z (--local-mode) for running chef on my machines because of an issue that I've seen recently with chef-solo in version 12. I have one spot in one of my ...