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
0
votes
2 answers

Using Chef, can I use include_recipe in an If statement and count on it working multiple times?

I would like to include a recipe based on a conditional branch in another recipe. This is currently planned to be during the execution of a Ruby .each iterator. The opscode wiki says the following about include_recipe, "...subsequent calls to…
kries
  • 5
  • 1
  • 3
0
votes
1 answer

Spinning up multiple EC2 servers with knife and assigning elastic ips from a pool

I'm wondering how to go about spinning up multiple EC2 servers using knife of the same type, say 4 app servers, and assigning them each an elastic IP from a pool of available Elastic IPs. I have assigned EC2 servers elastic IP's using the ASW…
Adam Duro
  • 101
  • 2
0
votes
1 answer

Removing an ubuntu package with chef

An older version of a cookbook installed a package that I no longer want on my systems. My understanding is that chef doesn't have a straightforward way to explicitly remove a package, so I resorted to the blunt hammer of execute: execute "Remove…
Leopd
  • 1,757
  • 4
  • 24
  • 30
0
votes
1 answer

Chef Integration Tasks Best Practices

I am new to chef (using hosted chef server) and am muddling along ok and basically understand how to provision individual servers. What I am having trouble with is figuring out how to integrate the various provisioned servers into a functional…
runamok
  • 163
  • 10
0
votes
1 answer

chef apt_repository fetching fails

I am trying to fetch a specific repository to install a php version but I keep getting 404 NOT FOUND. chef recipe code: apt_repository "dotdeb-php54" do uri "http://archives.dotdeb.org" distribution "squeeze" components ["php5/5.4.8"] key…
slik
  • 155
  • 2
  • 8
0
votes
1 answer

installing php .deb files

I am using dotdeb.org php 5.4.8 http://archives.dotdeb.org/dists/squeeze/php5/5.4.8/binary-amd64/ I download all the files on to my box and run the following cd /tmp/php-deb-5.4.8 dpkg -i php5-common_5.4.8-1~dotdeb.0_amd64.deb dpkg -i…
slik
  • 155
  • 2
  • 8
0
votes
1 answer

Install custom php modules with chef solo

I've tried to search but unfortunately I don't find any documentation or article about how to install custom php modules like pdo_mysql when provisioning with chef solo. If you do know, I'd be very glad to know :)
Dzung Nguyen
  • 131
  • 2
  • 8
0
votes
1 answer

Getting a chef node to re-register a new identity with the server

I'm using chef-server to manage resources deployed on AWS. But when I want a new node, I don't like waiting the 30+ minutes it takes for a full chef run to install everything. So I've created an AMI with a recent snapshot of the machine after…
Leopd
  • 1,757
  • 4
  • 24
  • 30
0
votes
1 answer

auto updating chef client

I've been exploring chef and one of its features is to auto update a client. I'm hesitant to use this feature in production because I don't want to upgrade a node while it is in use. For major changes I would want to route traffic to a different…
Jeff Storey
  • 448
  • 1
  • 7
  • 19
0
votes
1 answer

chef specify openjdk package on ubuntu

I'm creating a Vagrantfile that uses chef solo to install OpenJDK on Ubuntu 12.04. Is there a way to specify which specific package of OpenJDK is installed? This way I can be sure I'm consistent across multiple installs.
Jeff Storey
  • 448
  • 1
  • 7
  • 19
0
votes
1 answer

Dynamically loading chef recipies from URLs

I'm deploying a web app on AWS. I intend to use chef to build AMIs which I'll then put into production. I want to have Chef monitor a URL stored in simpleDB. The URL would point to a tarball in S3. There would be different URLs, one for a config…
andy
  • 159
  • 1
  • 10
0
votes
1 answer

chef, wordpress, apache, php

I saw a project this past thursday online that does the following: installs wordpress, apache, php, mysql all via chef and it does this on 2 servers for replication. I can't for the life of my remember the name of the project. Anybody seen this…
Chris-AZ
  • 107
  • 1
  • 5
0
votes
1 answer

Updating a staging server (from a CI server) in a Vagrant box with Chef

I'm using Vagrant + Chef (chef_client provisioner) to create & provision a staging environment for my server. And I have a Jenkins job set up that is run every time I push to my 'develop' branch. In the Jenkins job, I would like to update & rebuild…
Tomas Brambora
  • 153
  • 1
  • 1
  • 6
0
votes
1 answer

I can't vagrant up because of SSH error while mounting shared folder

This is the error code I'm receiving: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1…
la_f0ka
  • 111
  • 3
0
votes
1 answer

Convert Chef recipe from Centos to Ubuntu

I'm trying to adapt a chef recipe developed for Centos to Ubuntu, and thinking that there must be a better way. Methodology (I'm using Vagrant): vagrant reload Look through log to find the package that broke Example: [Wed, 04 Jul 2012 06:24:34…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59