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
1k views

new user with authorized_keys: how to NOT ask for the old password when setting one?

when I create a user in the system with Chef, I always upload its public key to .ssh/authorized_keys. When user logs in for the first time, he is required to "change" his password. For that a stub ...
1
vote
1answer
1k 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 ...
11
votes
5answers
8k views

Knife SSH doesn't find my nodes

knife ssh isn't finding my nodes. I know it should be able to because when I can search for them I find them # knife search node name:* 2 items found Node Name: web_01 ... Node Name: admin ... ...
13
votes
4answers
4k views

Manage chef cookbooks in a team environment

I'm learning chef and having problems structuring everything to work with my team. For starters, it seems that you should create a chef-repo folder, where you will store and modify the cookbooks used ...
25
votes
7answers
15k views

Do chef and puppet cost money?

I intend to use chef or puppet to do administration (I'm thinking more of chef as it's younger and I get a better feeling about it). In both home pages I saw there is an "enterprise edition" that ...
3
votes
1answer
3k views

Create/Update apache virtualhost on the same node for diff subdomains using Chef server?

I've two applications to deploy/run using chef on a single node under the same domain/subdomain. One is a Rails app and another is a Wordpress app. The Rails app will reside as the main app at say ...
6
votes
5answers
3k views

Bare minimal Chef provisioning and deployment?

I've read the documentation on Chef twice over. I still can't wrap my head around it's concept because they skip but fundamentals and jump to complex deployments with chef-server. Using chef-solo and ...
0
votes
2answers
308 views

CouchDB/xulrunner hang on Ubuntu 10.04 LTS

I have an Ubuntu 10.04 LTS box setup as a Chef server. This was all working fine until the first time the box was rebooted, after which the following three (possibly unrelated) things happened: ...
1
vote
2answers
7k views

In Chef how do you override default attribute values in node.json

I'm running chef-solo with chef-solo -c solo.rb -j node.json -ldebug and it's failing because nginx cookbook/recipe refers to user "www-data" which I don't have. Can I change the value in node.json ...
5
votes
3answers
6k views

Using vagrant and chef to setup a Windows VM in Ubuntu

I'm running Ubuntu and I want to setup a VM in Virtualbox via Vagrant and Chef. I think what I'm missing is a .box for the Windows Server 2008 R2 x64 trial I have. Does anyone know where I could ...
8
votes
2answers
5k views

How do I provide dpkg configuration parameters to aptitude or apt-get?

When installing gitolite I find that: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. ...
1
vote
2answers
111 views

Running scripts before Chef-solo starts?

I'm using Vagrant with Chef-solo to create a dev environment VM. Problem is, the Debian Chef package depends on a certain version of RubyGems to run, but I want the VM to have a much newer ...
2
votes
1answer
3k views

How do I use Chef Data bags to setup a mysql server

Ok I'm getting started with Chef using the opscode server. I'm using the community cookbooks, and I've got basics working (I created a users/myname.json data bag and added the user::sysadmins recipe ...
2
votes
1answer
1k views

Bootstrap and Deploy - Chef and Capistrano

I've been looking online for what practices people are using when scaling their site using chef/capistrano and have not found much procedural information on this so thought I would ask here. We are ...
2
votes
1answer
144 views

Tools helpful for setting up virtual test environment

I'm looking for something similar to vagrant, but working with KVM. I'd like to setup a couple of machines with packages I point at using a single command, but I don't really want to write the whole ...
42
votes
1answer
15k views

Chef best Practices/Questions

I use and love Puppet. I moved to a new company and they are adopting Chef. So I'm trying to learn Chef but am having a hard time piecing it all together because I still think in Puppet =) These ...
1
vote
1answer
2k views

chef/knife environment configuration help

I have the following as my knife.rb: log_level :info log_location STDOUT node_name 'user' client_key '/home/user/.chef/user.pem' ...
6
votes
1answer
2k views

Permission denied when opening file as root with mode 777

I'm attempting to install and run syslog-ng but I'm blocked with the following error. Error opening configuration file; filename='/etc/syslog-ng/syslog-ng.conf', error='Permission denied (13)' I'm ...
2
votes
2answers
2k views

How to find all local user accounts in chef

Using opscode chef, is there a way to find or loop over all user accounts? I need to create a configuration file in each users home directory. I do not want to loop over any directory structure for ...
3
votes
1answer
865 views

Recommendations for hosting Rails on Amazon EC2? [closed]

There are a number of solutions for easily hosting Rails on Amazon EC2 like the following Poolparty Rubber Amazon Cloud Formation Opscode Chef Rolling your own (and I'm sure others I'm not aware ...
2
votes
3answers
2k views

emulate fabric/capistrano with puppet or chef

i have a few remote environments where i can only connect from outside but not from inside to outside. for my deployments/configuration needs i used fabric and capistrano that works fine but I have ...
17
votes
4answers
7k views

Best practice for testing chef recipes?

My team has created a large number of chef cookbooks. I was wondering what methods and frameworks I should look into so we can start creating tests to assure that our nodes are configured properly?
1
vote
3answers
2k 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
288 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
964 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
461 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
2k 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
9k 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
7k 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
674 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
530 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 ...
6
votes
3answers
4k 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
480 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
456 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
5k 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
449 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
2k 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
797 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 ...