Questions tagged [chef]

Chef is an open source configuration management framework for infrastructure automation.

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 fully automated infrastructure: when a new server comes on line, the only thing you have to do is tell Chef what role it should play in your architecture.

More information can be found in the Documentation.

635 questions
4
votes
2 answers

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 as PHP application servers. By default PHP 5.3 and…
Drew Khoury
  • 4,637
  • 8
  • 27
  • 28
4
votes
2 answers

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 execute a Chef recipe to install some dependencies and…
Kieran Benton
  • 131
  • 1
  • 5
  • 16
4
votes
2 answers

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 using Berkshelf with all needed cookbooks distributed…
leifg
  • 171
  • 1
  • 8
4
votes
2 answers

Merging Chef attribute arrays

Let's say I have two cookbooks, Foo and Bar. In cookbook Foo, attributes/default.rb contains the following: default[:test] = [{:baz => 'A', :qux => 'B'}] In cookbook B, I'd like to expand that array with another object (i.e. merge the two arrays):…
Joseph S.
  • 171
  • 1
  • 2
  • 4
4
votes
3 answers

Running `apt-get upgrade` with Chef Solo

I'm using Chef Solo to provision a Vagrant VM based on Opscode's "Bento" box for Ubuntu 12.04. When it's done provisioning and I SSH in for the first time, the MOTD tells me there are packages and security updates. I then run sudo apt-get upgrade…
Jimmy
  • 193
  • 2
  • 6
4
votes
1 answer

How to monitor and log Chef server and Chef client response time and network trafiic?

I am very new to Chef Server and Chef Chef client. Also, new to Ruby in which Chef was written. I have a problem monitoring the performance of chef server's response time when Chef client is running and getting information from it. By the way, our…
Ella
  • 41
  • 3
4
votes
1 answer

How to create an EC2 instance with knife?

I was able to make knife access AWS by following: http://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife Now, I get a knife command almost working: $ knife ec2 server create -r "role[base]" -I ami-c1aaabb5 -f t1.micro…
poseid
  • 559
  • 4
  • 10
  • 20
4
votes
4 answers

How to configure knife and EC2 to create a new instance from the command line?

I am playing with Amazon EC2 to create instance. I was reading here: here in the knife documenation for EC2, that I would need to set: # EC2: knife[:aws_access_key_id] = "Your AWS Access Key" knife[:aws_secret_access_key] = "Your AWS Secret…
poseid
  • 559
  • 4
  • 10
  • 20
4
votes
1 answer

Chef - multiple files dynamic template resource

I'm trying to find a way to apply template resource dynamically on all files which are in a folder inside the cookbook's template folder. something like: Dir.foreach("../templates/default/shared/") do | file | # This is the wrong line... template…
SecondThought
  • 409
  • 1
  • 4
  • 11
4
votes
1 answer

Version control of chef nodes and roles

Is it good practice to version control the nodes and roles when using chef? If so, what is a good way to do it? It looks likes one should be able to take a tree of JSON files created using chef_server_backup.rb and simply check it into VC. Are…
Stephen C
  • 551
  • 4
  • 18
4
votes
2 answers

How to have Chef use a different ip?

I'm using a bridged network on a vagrant VM with chef-client. knife node show test1-vagrant shows an ip address of 10.0.2.15, which is eth0. eth1 is 192.168.1.5, which is what DHCP gave it. How can i get chef thinking the ip address is…
Ron Garrity
  • 393
  • 1
  • 3
  • 5
4
votes
1 answer

nagios automation in big scale

I would like to know if you have an experience or any idea about how to set up nagios in big scale. Previously we used nagios and nagiosql for manual settings, it was pretty comfortable for few servers. Recently number of server has changed and…
com
  • 261
  • 2
  • 15
4
votes
2 answers

Chef recipe to install varnish 3.0 on ubuntu lucid?

Here's my problem. I want Varnish 3.0, but Lucid only has the 2.1 package available. So using Chef, I need to make an install recipe that adds the varnish-cache.org repository to the apt sources and installs the varnish-3.0 package. (I have the…
Mojo
  • 955
  • 2
  • 9
  • 24
4
votes
1 answer

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 get feedback of different ways to do this; and…
Scott M Likens
  • 211
  • 1
  • 3