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

1
vote
2answers
1k views

Installing something from source using chef, should I be doing some checks

I'm installing something from source using chef and the script resource. Should I be doing a check for the resultant executable etc. as part of it? e.g. What I currently have is: remote_file ...
0
votes
2answers
284 views

How to dynamically setup DNS

I trying to setup as part of a study a PaaS (Platform as a service) for Ruby on Rails applications. I have already played with Amazon EC2 and Chef creating EC2 instances based on Chef's recipes and ...
1
vote
1answer
896 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 ...
4
votes
1answer
3k views

Chef: import definitions from other cookbooks

Basically I have a couple cookbooks I've written, and currently they all have the same definition file copied on each. Obviously this is a bad situation, as it makes adding new cookbooks more ...
1
vote
1answer
446 views

Chef clients are unable to connect after Ubuntu upgrade

After I upgraded Ubuntu on my chef server from 10.04 to 10.10, all my knife and chef clients stopped working. I received 401: Unauthorized exceptions for every query and operation. I tried ...
0
votes
1answer
2k views

Configuring Virtual Hosts with Chef - Best Practice

I'm getting started with Chef and I've got a couple of things work which is great. I'm a little stuck though with how to use the Apache2 recipe to configure a virtual host. I have 5 hosts to set up ...
1
vote
2answers
1k views

chef clients behind firewall

I am currently learning about chef. What I understood so far: I have to install chef-server on an own server or use the hosted chef. I have to install chef-client on the servers that I want to ...
25
votes
3answers
8k views

What are the benefits of running chef-server instead of chef-solo?

I am looking at automated deployment solutions for my team and have been playing with Chef for the past few days. I've been able to get a simple web app up an running from a base Red Hat VM using ...
0
votes
1answer
6k views

Chef conditional execute in recipe

I'd like to create an execute block which is only run when some specific condition is met (in this case if an interface wlan0 is present). Alternatively, I'd like to prevent the notifies clause of a ...
1
vote
1answer
621 views

How to get feedback from chef-clients

We are considering using chef to manage our application servers. So, we are creating recipes which configure resources for us as needed in certain situations. But what happens if the execution fails? ...
0
votes
1answer
522 views

Problems bootstrapping Chef from Rubygems on CentOS5.4

I am new to Chef and am trying to install chef-server on an AWS t1.micro instance based on RightScale CentOS5.4 32 bit ami. I am bootstrapping from Rubygems following the guide from the opscode wiki ...
3
votes
2answers
2k views

chef assign elastic ip to instance

I am using a custom bash script to spin up/down EC2 instances as needed. The script creates the instance similar to: knife ec2 server create --config .chef/knife.rb with a few other parameters. It ...
1
vote
2answers
1k views

puppet or chef for stand alone server with limited resources

I have a small virtual linux server (500 megs ram). I may eventually get one or two more servers, not more. I'm a dev, not a sys admin so I don't know the best practices involving linux ...
5
votes
3answers
3k views

bootstrap (add node) localhost in chef

Problem. Following command line knife bootstrap 127.0.0.1 -r 'recipe[chef-client]' -x user -p password --sudo returns Bootstrapping Chef on 127.0.0.1 WARNING: Failed to connect to 127.0.0.1 -- ...
2
votes
2answers
477 views

Is there something like puppet or chef that can manage dependencies across hosts?

Chef/puppet are great tools for managing the configuration of individual hosts, but they seem to fall down slightly when a configuration has dependencies between hosts. For example, I'd like to have ...
2
votes
1answer
1k views

chef knife: run_list with multiple roles in ec2 server create command

I'm using chef's knife to create EC2 servers (and thus new nodes). I can get it to start with a given single role correctly, but I can't get the command line argument right for multiple roles in the ...
4
votes
2answers
444 views

chef's knife non deterministic failture to launch new EC2 instances

I'm using chef's knife to launch new ec2 instances. This works generally well, but every 2-3 attempts it fails and I get the following stack: [Sun, 10 Apr 2011 08:11:23 +0000] INFO: Client key ...
2
votes
1answer
1k views

Puppet or Chef to configure webapplication

I'm looking for a deployment tool for java based webapps deployment to QA/preprod enviroments. Application is typical webapp, compiled to war/ear with .properties file. During deployment ...
12
votes
2answers
4k views

In chef, how do I access attributes within role files?

I'm able to set attributes in role files as documented but I'm not able to access attributes already set by cookbooks that I'm using. For example within /roles/appserver.rb: name "appserver" ...
1
vote
3answers
1k views

Chef/Puppet with multiple configuration servers

Does either Puppet or Chef support replicated puppetmasterd/Chef servers? It seems very surprising to me that these tools would force a single point of failure, but I haven't been able to find any ...
0
votes
1answer
2k views

Scaling Chef with multiple instances or replication

I have a chef server setup, but since it serves quite a lot nodes, the server gets slow. There is two scenarios I would like to explore and I would like to know if anyone has experience with them: ...
4
votes
2answers
4k views

Chef = Node Attribute, how to Manage them locally, versioned and then upload them?

i would be greatfull for help. I do not understand at all, how should i manage the Node data locally with my Git versioning system? Exceprt from the Chef Documentation: ...
16
votes
7answers
2k views

What are the right questions to ask when deciding whether to use Chef or Puppet?

I am about to start a new project which will, in part, require deploying many identical nodes of approximately three different classes: Data nodes, which will run sharded instances of MongoDB. ...
0
votes
5answers
125 views

Any conference videos online that you guys can recommend?

I like watching conference presentations that show you how to do things when it comes to server setup/deployment etc. Any good ones out there? The more practical and hands on the better.
1
vote
4answers
441 views

knife server create- finding lists of flavors

I'm new to Chef and I think I'm missing something in reading the docs. I want to create servers using knife server create (options) but can't seem to find fully complete documentation on the ...
1
vote
5answers
2k views

Change the order of IP addresses returned by ifconfig?

I have an Ubuntu server with several IP addresses attached to it. 127.0.0.1 is listed as venet0 by ifconfig. I'm using Chef to configure the server. The problem is that chef is listing 127.0.0.1 as ...
2
votes
2answers
1k views

Slackware: Chef or puppet?

Do chef or puppet have any slackware support? Are any slackware admins using either of these? What has your experience with them been and which one would you recommend to someone who is maintaining ...
10
votes
2answers
775 views

Configuration Management overkill for 3 node clusters?

I have 2-3 node clusters for our load balancers and various web applications. I'm having to make the change in QA first, then in staging (on 2-3 servers), then in production (on 2-3) servers. Is a ...
1
vote
2answers
2k views

Untar with root: is it possible to set the uid?

Is it possible to tell tar to unpack the archive and set the uid/gid to a specific one, when you run tar as root (while using chef) ? Things I already know: I can use -o to extract as root, then ...
1
vote
1answer
963 views

sudo and chef-solo problems

I'm facing a weird problem when executing chef-solo commands on Ubuntu 10.04. If I execute this (as root): # chef-solo -c /opt/mycorp/mycorp-chef-code/config/solo.rb -j ...
16
votes
5answers
4k views

What's the strengths and weaknesses of existing configuration management systems? [closed]

I was looking up here for some comparisons between CFEngine, Puppet, Chef, bcfg2, AutomateIt and whatever other configuration management systems might be out there, and was very surprised I could find ...
5
votes
3answers
297 views

What configuration management solutions exist in a non-networked environment?

My servers exist in an environment without outside network connectivity (this is a requirement), so when I deploy updates all packages, binaries, config files, etc. must be included on the delivered ...
2
votes
6answers
5k views

How to edit /etc/shadow on many Linux servers?

I would like to change the root password on about 20 Linux servers. Mostly CentOS and Ubuntu. So I have looked at Puppet, chef, and cfengine, but I can't really tell if they can do that, or if they ...
1
vote
1answer
401 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
294 views

Chef - not able to install sysstat

I am having trouble installing sysstat using a chef (v0.9.8) recipe. Any help or pointers would be greatly appreciated! I have included my chef recipe towards the end. After running this recipe, I am ...
1
vote
1answer
346 views

Rerunning Execute block in chef-solo

I have an execute block that runs an external install script, that I have no power over. That install script sometimes immediately does what I want and at other times first runs an arbitrary number of ...
1
vote
1answer
707 views

Problem configuring Cookbooks in chef

I've been trying to setup a chef server and supply it with the cookbooks form the opscode github page http://github.com/opscode/cookbooks.git I've cloned this repo and set it in both my server ...
15
votes
2answers
7k views

How do I get started with Chef?

The chef documentation is pretty bad. And Google isn't helping me. Can anyone point me at a decent article or something that would help me get started? My specific issues are: How do I get a ...
7
votes
2answers
3k views

Idiomatic way to invoke chef-solo?

What is the idiomatic way to invoke chef-solo? Most sites do this: chef-solo -c ~/solo.rb -j ~/node.json -r http://www.example.com/chef-solo.tar.gz But that's long. There are a few shorter ways ...
52
votes
6answers
14k views

Puppet vs Chef, pro and contra from users and use cases [closed]

I already googled and read the "to-puppet-or-to-chef-that-is-the-question" article. I'm interested in use cases, real world implementations in which people had choosen one or the other on real ...
27
votes
9answers
11k views

Are configuration management tools (Puppet, Chef) capable of keeping installed packages up to date?

This is probably a simple question for those of you already running configuration management tools. Are configuration management tools such as Puppet or Chef the right approach for keeping installed ...
6
votes
8answers
2k views

any way to use puppet or chef without launching daemons?

Is there any way to use puppet or chef recipes without launching daemons and such? I'd like to be able to interpret files and apply them without all of the heavy lifting. If not, is there an ...
0
votes
1answer
409 views

chef error on centos 5.3

I am trying to configure chef on my CentOS sever... sudo chef-solo -c ~/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz should install basic things.... but Iam ...
4
votes
1answer
2k views

Which way is the most 'elegant' way of installing packages with Chef?

I have 3 different ways to install said package, and I prefer option #1 the most, but I wanted to see if there was a reason to use option #2 or 3 or any other options? (My goal of this question is to ...