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

2
votes
4answers
882 views

chef-server-webui session not working when access from external IP address

I have installed chef-server on an Ubuntu 12.10 system using the official .deb package for that release. After the installation had finished I run chef-server-ctl test Which reported success, 0 ...
2
votes
2answers
503 views

Chef cookbook continuous deployment

I'm trying to integrate my chef workflow to my usual continuous integration/deployment workflows. I managed already to have a jenkins task which checks out the git repo and runs foodcritic but i ...
0
votes
1answer
76 views

Package versions on chef

We're deploying a multi-node PHP environment using chef. I've written a couple of cookbooks for specific server roles, that install certain packages (mostly using the package manager) the application ...
0
votes
1answer
24 views

Prevent chef from removing members from a group

In my chef recipe I'm creating a group with group "mygroup" do action :create end I have other users that are added and removed from the server which are not managed by chef. When I run chef ...
0
votes
0answers
61 views

Chef: Verify remote_file gpg signature without creating keyring

So we all know that Chef's remote_file resource has this problem: You can give it an attribute for a checksum, but it only uses that to determine if it should download the file again, not to verify a ...
3
votes
1answer
557 views

RedirectLimitExceeded while running chef client

I'm using for the first time chef solo for provisioning a Windows box created with Vagrant. While trying to apply the sql_server cookbook I get the following error: [2013-11-14T09:41:24+01:00] ...
0
votes
0answers
261 views

In a role, how to delete a default attribute from hash instead of merge?

Using the resolver opscode cookbook, I set some default info for a regular machine in our Colo. Our production system has two internal resolvers and I want it to load balance between them. This is ...
0
votes
1answer
990 views

Organize code in Chef: libraries, classes and resources

I am new to both Chef and Ruby and I am implementing some scripts to learn them. Now I am facing the problem of how to organize my code: I have created a class in the library directory and I have used ...
0
votes
1answer
75 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
81 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
249 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
239 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
250 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
159 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
229 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
180 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 ...
14
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
362 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
298 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
52 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 ...
3
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
187 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
89 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
327 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
151 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
242 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
880 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
136 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
565 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
192 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
484 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
76 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
285 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
728 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
428 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
437 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
2k 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
78 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
185 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
90 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
754 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
49 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
50 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
375 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 ...