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
1answer
455 views

Out-of-order chef recipes causing apt package install to fail

I'm writing a Chef recipe to install among other things nginx and Phusion Passenger. The short summary is that the recipes on my run list are not executing in the order I expect, and that's causing an ...
3
votes
3answers
131 views

File Caching Proxy Server For Config Management Software (Chef)

I have several servers that I manage with Chef. They all belong to one network and bandwidth among them is big in contrast to bandwidth to outer internet. The problem is: many times there is a need ...
-1
votes
2answers
211 views

How to use wrapper recipes in chef?

How can I cal a custom recipe from my default recipe? If I try recipe 'my-base-server' I get an error 1 argument for 0 What I want to achieve is a logical division of my recipe into base, ...
1
vote
1answer
1k views

uWSGI permissions issue

I'm trying to set up a chef recipe that will get my site running and everything seems to be working fine except for uWSGI which is giving me the following error: *** has_emperor mode detected (fd: 6) ...
1
vote
0answers
194 views

Chef gem_package not using the binary path

I'm trying to install the gems "sensu_plugin" and "mixlib-shellout", on a windows server 2008r2, from a recipe. In this last one, I have the following code : %w{ sensu-plugin mixlib-shellout }.each ...
0
votes
0answers
27 views

What accounts does clamav use on different Linux distros

I'm trying to fix a problem in a Chef recipe for installing / configuring ClamAV which is caused by the recipe using the wrong default user/group name for the clam service account on some platforms. ...
0
votes
1answer
942 views

Chef fails to bootstrap

I'm trying to create my first Chef node. I've got my laptop as the admin machine and VMs alaska and kentucky as the Chef server and node, respectively. This is strange because it's coming back as "No ...
1
vote
1answer
159 views

How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?

Summary How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server? Context Our ...
0
votes
2answers
805 views

Permission to write using 'deploy' user

I'm currently new to Chef and Capistrano. I'm using version 3.x of Capistrano to deploy Rails 4 application. I have successfully bootstrapped a server using chef solo. One cookbook that I'm using is ...
1
vote
1answer
278 views

Bootstrap Chef on Vagrant Box

I'm trying to bootstrap a Vagrant box using hosted chef server. knife bootstrap testbed001.me --sudo -x root -N "testbed001" However, the command throws an error: Bootstrapping Chef on ...
12
votes
2answers
2k views

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless ...
0
votes
2answers
295 views

Cloudformation Add Instance to Security Group in Different Region

I have a Cloudformation stack that I create through Jenkins in various Regions. I have a Chef server in one Region with a separate security group. I need new instances created via Cloudformation to ...
2
votes
1answer
131 views

Chef not deleting files in %systemroot%\system32 path using file resource

I am using chef file resource for deleting files inside %systemroot%\system32 path in Windows machine. Resource block is as below, file 'Delete_File' do path 'C:\\Windows\\System32\\my.dll' ...
2
votes
2answers
78 views

Customizing Chef cookbooks

I am trying to setup Munin using Chef, and I'm not sure where to put the customizations that are needed. For example, the documentation on Github says to add munin_plugin 'plugin_name', in the ...
1
vote
2answers
490 views

Adding/Enabling windows feature using chef

I am writing chef cookbook to add/enable some of the windows feature. For enabling I am using powershell_script resource and below is the powershell script. Import-Module Servermanager ...
2
votes
3answers
257 views

Vagrant single box with multiple addressable domain.locals

I currently utilize Vagrant and Chef to provision individual linux VMs for different apps. These apps are domain addressable from host, without requiring anything else set up on the host. This is ...
1
vote
1answer
192 views

Prevent sssd from using ldap to authenticate or id specific users for chef

I'm trying to use chef to add/modify a few local user accounts. For whatever reason there are duplicate accounts in LDAP. Since the system uses sssd/pam/ldap, it sees the user as existing, but is ...
0
votes
1answer
293 views

Deploying Rails Application in AWS OpsWorks

I've created a stack, inside this stack have created two layers. Rails App Server (Ruby version: 2.0.0, Rails Stack: nginx & Unicorn, no custom chef recipes) MySQL (using built-in recipes) And ...
2
votes
2answers
2k views

chef upload cookbook failed with network error

I've created a chef server on a virtual machine (192.168.0.21). The server runs fine on https (this is the last version from the opscode site). knife user list (and the other list commands) run fine, ...
1
vote
3answers
2k views

How to install Redis with Chef?

I am trying to install Redis with Chef. I would think, it's easy, since I only want to have the default configuration. So, I add to a Berksfile: site :opscode cookbook 'apt' cookbook 'node' ...
0
votes
2answers
96 views

Can I still benefit from using Chef (et al) when I'm not in total control of the server?

I would like to get better control over my deployment environments, but I share the system administration responsibility with an IT department that has their own (not fully automated) processes for ...
2
votes
1answer
910 views

A chef recipe to install ruby 1.9.3 system wide without rvm nor rbenv

I'm looking for an Opscode Chef cookbook that installs system-wide Ruby version 1.9.3, patch-level latest at the time of the run_list execution. Have done some research and there is a Brightbox PPA ...
2
votes
4answers
1k 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
565 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
103 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 ...
4
votes
1answer
592 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] ...
1
vote
1answer
1k 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
80 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
84 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
308 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
276 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
281 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
168 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
33 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
258 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
218 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 ...
20
votes
2answers
4k 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
412 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
362 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
54 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
3k 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
200 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
110 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
398 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
185 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
301 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
1k 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
156 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 ...