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

0
votes
1answer
444 views

Chef clients time out trying to connect to server

I'm not sure whether the problem is on client or server. All my machines are Ubuntu 12.04 x64. I'm on Digital Ocean, and I have to configure iptables to "survive". Server Story My Chef Server is on ...
0
votes
1answer
493 views

How to install a package with yum on Amazon Opsworks

I would like to install a single package with yum (or rpm) on my Amazon Opsworks instance when the instance starts. I have read about chef and recipes but all of the solutions seem very complex for an ...
3
votes
2answers
2k views

Opscode Chef Ohai plugin - How to get a custom plugin to run automatically?

The Ohai docs are incomplete. Here's what I've been able to do so far: I've created a custom plugin that adds one piece of node data called "my_custom_data" it works when I load it manually in IRB ...
4
votes
1answer
2k views

What are the pros and cons of AWS Elastic Beanstalk compared with other deployment strategies?

I'm pretty new to the whole Netflix OSS stack and deployments in general. As a background for my current level of knowledge ops-wise, my main role is as a front-end application engineer. However, I ...
0
votes
1answer
79 views

Chef cookbooks marked as executed

I have setup a Chef server in our network that I use to manage several nodes. These nodes have a chef-client installed executing as a daemon every X minutes. The problem is that every time the client ...
3
votes
1answer
191 views

Is it worth it to do revision control/puppet/etc. on a single-server-setup?

After reading Using revision control for server configuration files?, I decided to install etckeeper on my server. However, it's a one-server setup, so I only have one physical machine and no load ...
1
vote
1answer
95 views

Does a chef node need a public IP?

I'm looking at Chef as a possible solution for a project, and I'm still unfamiliar with its architecture. The first question that comes to my mind is this: do every node need a public IP? I want to ...
0
votes
3answers
1k views

Setting up Chef Node: Amazon EC2 instance is create but bootstrap fails

I am trying to get going with Chef and the freebie Chef server from Opscode. I got my Chef workstation configured on a local VM running Ubuntu 12.04LTS. I downloaded the chef-repo from GitHub as ...
0
votes
1answer
827 views

Chef: Knife ssh connection error

I try to run a command on all my nodes but get the following error. The chef docs say it should work like this. me$ sudo knife ssh "name:*" "uptime" -x myuser WARNING: Failed to connect to -- ...
0
votes
1answer
55 views

Chef: “notifies :restart” - stop watchdog prior to restarting service

We are using the community Chef apache2 cookbook with great success; my question revolves around using the "notifies" notification mechanism to tell Apache 2 of configuration changes. We run a custom ...
0
votes
1answer
51 views

How to execute script only after chef updates all nodes?

I want to make a recipe that deploys our software update executable to all servers and then publishes new version info to database. How to make script that makes database request only after all nodes ...
-1
votes
1answer
388 views

Ansible/Chef/Puppet to manage personal VMs [closed]

Does it make sense? I know it's useful when we have many servers/virtual machines, but I wanted to use these tools to manage my personal virtual machines. I'm using virtualbox. sometimes I have to ...
7
votes
1answer
2k views

Chef Server vs Chef Solo [duplicate]

I'm putting together a structure to run a Rails application. The application itself runs on Heroku. However, it makes requests to a cluster, which performs the call through a program in C. To be able ...
7
votes
2answers
2k views

Best strategy to keep chef cookbooks versions under control

I'm looking for ideas about chef cookbooks versions management. I know that you pin specific versions in the environment, but I'm not sure how to go about it. We use librarian-chef which installs 3rd ...
1
vote
1answer
111 views

Chef: Preinstall packages or install everything from scratch (fast/inflexible vs slow/flexible )

I'm curious is it a good strategy to prebuild binaries (install packages) and use chef for config management only. Theoretically it should speed up init process when we need new machines (traffic ...
2
votes
1answer
59 views

Overriding chef configuration

I'm starting to adopt chef in an private managed client-server environment. I'm looking to manage a fairly large environment of open access labs, user desktops and various types of server. Currently ...
3
votes
2answers
885 views

How to make Chef-Server use Ruby 1.9 on Ubuntu?

I've installed Chef Server on Ubuntu 12.04 using the official instructions, which uses the "omnibus installer" that has embedded ruby 1.8.7. I'm trying to install knife-windows, but when I run gem ...
0
votes
3answers
348 views

chef server on AWS, ERROR: Connection refused

I'm trying to get a chef server running on a CentOS instance on AWS. I've been following Opscode's directions here: http://www.opscode.com/blog/2013/03/11/chef-11-server-up-and-running/ However, when ...
1
vote
1answer
203 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 ...
0
votes
1answer
241 views

Chef use different IP Address

Just moved from Amazon to Joyent (doesn't matter why) and setting up my Chef Server I found following problem: As you may know, Chef sets the IP address according to the route table. So in my case, ...
1
vote
2answers
602 views

chef knife ec2 server create: error when spinning up new ec2 servers

I'm trying to use knife ec2 server create to automatically launch ec2 instances for the first time, but I'm getting "ERROR: Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)". ...
0
votes
1answer
235 views

How to update chef with knife solo?

I ran knife solo bootstrap [myserverssh] to initially install recipes on my server. Everything got installed correctly. I then made changes the recipes. I ran knife solo cook [myserverssh] to update ...
0
votes
1answer
29 views

Managing Multiple Configurations for the Same Software in Chef?

I'm new to Chef. I've been using chef-solo and I really like it so far. One thing that's not clear to me is the best practice on handling software configurations for the same software for different ...
1
vote
2answers
2k views

knife bootstrap windows winrm/ssh timeout

I am trying to bootstrap windows server with chef-client. I am able to manually go in and install the Chef omnibus installer. Then I successfully installed the rubygem knife-windows for chef-client ...
0
votes
1answer
111 views

Can't compile nginx::source

I have downloaded nginx cookbook manually today from http://community.opscode.com/cookbooks/nginx and started it with include_recipe nginx::source, using chef-solo 11.4 on Ubuntu 12.04 But I have ...
3
votes
1answer
823 views

How to force actions on “up to date” resources in Chef?

In the following code, I create a service that I would like to start only after deploying files that it depends upon, and to restart it whenever those files change. This very basic recipe does not ...
0
votes
2answers
373 views

how do I use chef to force ubuntu to install dependencies?

New to chef. I'm trying to install openjdk-6-jre-headless using chef, but first I went to try it out using apt-get and I get this this error The following packages have unmet dependencies: ...
47
votes
6answers
12k views

Why use Chef/Puppet over shell scripts?

New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. ...
1
vote
1answer
161 views

How auto configure or mirror my dev Ubuntu installation onto other dev machines?

I have a lot of packages and configurations done to setup my dev machine. I have other developers in my team and want them to have the same setup to start with to ensure compatibility and availability ...
0
votes
1answer
331 views

Organizing Chef resources and extending cookbooks: Apache2 package + Compiled PHP

I'm trying to understand how to organize my Chef kitchen and extend the functionality of Opscode community cookbooks. Disclaimer: n00b. PLANNED STACK Ubuntu 12.04.2 Apache2 (package) PHP 5.4.13 ...
0
votes
1answer
410 views

Error when using Chef on OS X: “bash: chef-solo: command not found”

I have chef installed on my local machine: Mac OS X 10.8.3 I also have chef installed on a remote server: Ubuntu 12.10 x64 Server On the local machine, when I try to execute a command using ssh ...
0
votes
1answer
103 views

Is there a way to specify versions for programs using Vagrant and Hosted Chef?

I am trying to improve my development workflow but am running into some major roadblocks. Currently, we develop on local Windows machines running XAMPP then after tested on an individual machine, push ...
0
votes
1answer
412 views

How to copy the appropriate config file, with CHEF, in a recipe?

I'm starting to learn how develop recipes to chef. I need to install Ganglia Monitor in some servers (or nodes in ganglia literature). So that's why I'm checking if the plataform is ubuntu, centOS and ...
1
vote
1answer
1k views

Vagrant / chef - nginx cookbook extend

I am fairly new to using chef, particularly with vagrant so this will most likely be a silly question to the more experienced users out there. I am using this cookbook: ...
1
vote
1answer
210 views

What is the most automated way to deploy a new server being managed by Chef?

We use knife-vsphere to deploy and configure new chef-managed servers in our virtual environments, but don't have any one-step solution for physical servers. Currently the process involves imaging a ...
4
votes
2answers
2k views

How to install PHP 5.4 on AWS Opsworks

I'm trying to get php 5.4 running on AWS Opsworks. When I add the "PHP App Server" layer I get the following description "The PHP Application Server layer is a blueprint for instances that function ...
1
vote
2answers
592 views

“one-off” use of http_proxy in a Chef remote_file resource

I have a use case where most of my remote_file resources and yum resources download files directly from an internal server. However, there is a need to download one or two files with remote_file that ...
1
vote
1answer
490 views

Chef rbenv cookbook recipe user not found

I have a problem with Chef rbenv cookbook. Once I start to bootstrap a server it gives me a error: could not find user recipe for cookbook rbenv But the recipe is in the recipes folder. I can not ...
1
vote
2answers
668 views

Service doesn't start when using chef

I've written a script which I trigger as a service. When I call service myservice start the service starts fine. However, when the same service is triggered using chef, the service doesnt start. My ...
1
vote
1answer
289 views

Manage multiple ssh-keys for one user with Chef

I started to use Chef in my infrastructure, but cannot make recipe like this: -each developer has own public ssh-key. -in remote server there is an unique user, named ubuntu I want to use data bags ...
0
votes
1answer
485 views

Chef how to run a run list in filtered node

How to run a run list in several nodes? Now I wrote a script loop those severs and run using knife bootstrap. Is there better way to do it? Like how we use "knife ssh 'id:*', can we run a run list in ...
0
votes
0answers
668 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 ...
2
votes
2answers
1k views

Using Chef Solo to provision a Windows EC2 instance and bootstrap it

I'm trying to automate our CI process for a couple of .NET apps, and in a perfect world I'd like to spin up a Windows EC2 instance for each, bootstrap the instance to install Chef Solo and then ...
0
votes
1answer
38 views

Can I get a clear summary of how and when each part of a chef cookbook is loaded/executed?

Here's what a chef cookbook looks like: . ├── attributes │   ├── default.rb │   └── bla.rb ├── files │   ├── default │   │   └── some_file.txt │   └── windows │      └── some_file.txt ├── libraries ...
2
votes
1answer
739 views

How to create a group with chef

I assume this is straightforward, but I'm lost in the abstractions in Chef. I want to create a new Unix group on Red Hat Linux, called deployers, and then add some of my users to that group. What are ...
2
votes
1answer
317 views

What is preferred approach to deploy Python app using RPM? [closed]

I am new to the dev-ops side of things, and I've been working to get a Python application packaged into an RPM (using python setup.py bdist_rpm) deployed onto a centos VM via Yum. Chef is used to ...
2
votes
2answers
679 views

keeping chef data bags on server in sync via git repository

I recently started using chef and I love it for provisioning my vagrant boxes and quickly spawning new machinges. Now I started using a hosted chef server. It's pretty easy to manage my cookbooks ...
0
votes
1answer
436 views

Pass override attribute via command line for chef-solo

For chef-solo, is it possible to pass the override attributes via command line? Because sometimes the attribute is just adhoc decision and is diffent from host to host, e.g. hostname, we don't want ...
5
votes
2answers
3k views

Chef: create a directory for a template if it doesn't already exist

If I have a template being created, how can I ensure that the directory exists? For instance: template "#{node[:app][:deploy_to]}/#{node[:app][:name]}/shared/config/database.yml" do source ...
1
vote
2answers
728 views

Prevent chef recipe from executing previously executed action?

I have a simple recipe like the following, and currently I am using a local file to indicate if the command has been run or not execute "test" do command "sh test.sh && touch ...