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
70 views

Knife will no longer download recipes from opscode

My setup is on Mac OS X and using Chef solo Somehow after running: knife configure -i I can no longer download anything when I run: knife cookbook download site apache2 I get back: ERROR: ...
1
vote
0answers
79 views

Chef Knife-Windows

I'm trying to bootstrap a windows 2008 R2 Server with chef and i'm receiving this error :"CScript Error: Execution of the Windows Script Host failed. (0x800A0007)". After some research i find out ...
1
vote
2answers
211 views

chef deploy start service and restart service in sequence

Chef stop and start service in sequence and would like to ask different procedure. Step 1: framework bootstrap to jboss service bash "bootstrap application" do code <<-EOF ant ...
2
votes
2answers
219 views

Using Chef to update an EC2 instance

I've been thrown into the deep end of Chef this past week, and I'm stuck on one thing at the moment. I've created an instance in AWS (many times at this point) and when chef kicks in to do its thing ...
1
vote
1answer
1k views

Install Java 7 with Chef using Opscode Java Community Cookbook

I am trying to install Java 7 on Ubuntu with the opscode java community cookbook. Java 6 seems to be the option no matter what incantation I make: [2013-09-24T00:24:32+00:00] INFO: Processing ...
0
votes
1answer
227 views

How do I “duplicate” a server?

I have a EC2 and Digital Ocean servers and I want to re-create them locally (same config files and everything). By local I mean virtual box (vagrant). I had started out by managing them with Chef but ...
2
votes
1answer
157 views

How to manage Linux servers and tasks?

As a developer who is managing more and more Linux servers for my various projects and tasks, I'm starting to seriously think about how to manage these servers efficiently. I have come up with such a ...
0
votes
1answer
32 views

Why chef nodes retain roles after removing them?

We have a few servers, with a usual mix of roles and recipes. We've found a problem though: after a role has been removed from a server (specifically: removed from its run list, and re-provisioned), ...
0
votes
1answer
213 views

unable to upload cookbook from knife to chef-server

I am running open source chef server on ubuntu ec2 instance. I am trying to upload the cookbook from my workstation using knife to chef-server, I am getting following error ...
0
votes
1answer
162 views

How to provision a vagrant VM with Chef and and a .rb file filled with instructions

I probably got the whole concept wrong: I have a working Vagrant VM with Ubuntu 12.04, on top of it I want to install a few packages and config files. I have them set in Chef, in the path ...
13
votes
2answers
3k views

Relationship between Vagrant, Docker, Chef and OpenStack (or similar products)?

I am a web developer, but I am also interested in a few administrative tasks. Hence, the new move from pure administration to dev-ops comes handy for me. Anyway, I have some problems to put a few ...
0
votes
1answer
327 views

Chef 11 node attributes available and ordering

In Chef 10 I have a number of roles which set custom node attributes like "appname": "my_rails_app" The attribute is then used to load app specific variables in a wrapper cookbook. There are ...
1
vote
2answers
277 views

Specify Chef provider for windows_feature

I originally asked this question on StackOverflow, but did not receive any working answers: http://stackoverflow.com/questions/18648713/specify-chef-provider-for-windows-feature. I'm trying to use ...
0
votes
1answer
48 views

How can I fix a missing activesupport 3.2.12 gem error in Chef 11?

Symptom: In the Chef Server 11 user interface (UI), when clicking the "Edit" link on a user (ie: 'hxxp://chef.example.com/users/admin/edit'), the following error shows up: ERROR: No such file or ...
2
votes
1answer
2k views

How to ensure a service is running, using Chef?

I am in a situation where Chef might start a service (postgres) but it might subsequently be stopped out-of-band. I want a subsequent Chef run to cause the service to be running. I have tried this: ...
2
votes
2answers
180 views

Windows server farm on AWS/EC2

We'll be deploying our application infrastructure (primarly Windows with some Linux components) on AWS/EC2 VPC. We'll be using Chef to handle provisioning and administration. However, unlike Linux ...
0
votes
1answer
83 views

Can a chef client use a different node_name and client_name

http://docs.opscode.com/config_rb_client.html says that the node_name option also sets the client_name, but the formatting of the page makes me think that client_name might be a settable option ...
2
votes
1answer
308 views

Vagrant: I need a provisioning system with no dependecies

Getting off the ground with a vagrant config. Host is Windows. I have a really simple config, so I wanted to use Ansible, but got this: [default] Running provisioner: ansible... The executable ...
0
votes
0answers
135 views

Can multiple self-registered chef Nodes use the same Client identification?

When a freshly imaged machine on my network connects to my chef-server for the first time, it uses validation.pem to connect. Through this process a new Node and Client are created on the server, both ...
1
vote
2answers
206 views

Check version using Chef

I have a small application installed on a few servers, I wanted to write a quick recipe that will allow me to gather the version number from these servers. This is what I've written: bash "Get app ...
2
votes
1answer
755 views

Use chef-solo to install Oracle JDK 7

Assume I have the java cookbook and its dependencies downloaded from http://community.opscode.com/cookbooks and can run chef-solo successfully. Is there a command that I can run to install the latest ...
0
votes
1answer
128 views

Chef Ohai Plugin Creation - Creating a new Mash

Summary: Why do we initialise new mashes without an equals, "=", sign? Details: I have written a custom Ohai plugin for our company specific data to be available for use by various recipes. This ...
2
votes
1answer
507 views

Opsworks Custom Layer deployment

I am trying to use a custom layer in AWS Opsworks to add a nginx webserver. I have successfully created the layer, I added my app via GIT (no password on repo), but when I deploy the command is ...
0
votes
1answer
1k views

How to install tomcat for many instances with CHEF?

I would like to install tomcat with a recipe through chef at some folder, like /company/tomcat6.0.45-port8081. But sometimes I have many instances of tomcat, like /company/tomcat7.0.41-port8082, ...
0
votes
1answer
169 views

How to automate changed config files during apt-get upgrade in Ubuntu 12

I like to use "knife cloudstack server create ..." to build a new VM. My bootstrap template starts off with an "apt-get update" and "apt-get -y upgrade". The upgrade then halts with: 10.190.113.11 ...
2
votes
1answer
447 views

Chef Java Cookbook - JDK Upgrades

I am testing the Chef Java Cookbook to bring our JDK installations under Chef management and I am wondering how to upgrade the JDK, once installed, using the Chef Java cookbook. Background In order ...
1
vote
1answer
72 views

Easier way to apply one condition to a set of Chef resources

In this part of a Chef recipe, there are 4 execute resources. They should only run when a file does not exists. This is added as a condition to the first resource, which then triggers the entire chain ...
1
vote
1answer
272 views

How to update nginx via Chef

I am a developer who recently inherited our previous devops person's chef setup. I'm running Chef 10 server and have realized that the nginx cookbook from opscode still uses nginx version 1.2.6. Since ...
1
vote
1answer
629 views

How to use current cookbook template dir to copy all templates recursively in a loop with chef

I'm trying to figure out how can I construct the path to templates (or files, since it works the same way) folder, then I could read it and use template resource in the loop, so each template file ...
0
votes
1answer
406 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
390 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
1k 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
76 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
183 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
87 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
685 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
47 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
48 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
367 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
1k 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 ...
6
votes
2answers
1k 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
100 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
758 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
308 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
175 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
206 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
584 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)". ...