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

How do projects manage chef cookbooks when multiple teams manage multiple sets of cookbooks?

I am wondering how projects that have multiple component teams manage their sets of cookbooks? We are trying to figure out how we can have an ops team provide a set of "common component" cookbooks ...
0
votes
1answer
180 views

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 ...
2
votes
2answers
198 views

Chef-client kills processes

I use the knife ec2 plugin to bootstrap a new instance (Ubuntu 12.04) and install a software on it. Everything works great but after chef-client ends, some processes of the new software are killed. ...
1
vote
2answers
464 views

How do you configure rvmsudo using chef?

I am using the chef-rvm cookbook by fnichol to perform a system wide installation of Ruby via RVM with the rvm::system recipe. I.e. In my run list, I have (with no additional attributes set): ...
0
votes
1answer
518 views

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 ...
1
vote
1answer
46 views

Multiple identical GPG Keys. What can cause that?

I'm using OpsCode Chef to manage all my VMs, but since the last week, I'm having issues with one VM. When running chef, it hangs right at the beginning. After a bit of investigation, I found out that ...
3
votes
3answers
3k views

What permissions in IAM do i need to start EC2 instances with chef knife?

Q1: I am trying to create user in IAM AWS console that has restricted permissions only to start new instances using knife ec2 method. Currently only full access with policy "Amazon EC2 Full access" ...
1
vote
1answer
302 views

How to pass attributes from knife command (ssh)?

Is it possible to attributes from knife command (ssh), e.g. knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
1
vote
1answer
413 views

How to get the public instance address from knife ec2 server create with chef-solo

I'd like to somehow get the public instance address or hostname from knife ec2 create ..., but I can't find any mechanism for doing so. Since I'm currently using chef-solo, I've written a simple ...
1
vote
1answer
1k views

What is the correct way to use Chef-server's 'validation key'?

It seems to me that the recommended way of adding clients to a chef server - or my understanding of it - is flawed. from the docs: When the chef-client runs, it checks if it has a client key. ...
2
votes
1answer
114 views

Where is the history for the knife executing on the open-source chef server?

For example, after I run a knife command of 'knife cookbook upload cookbook_name' from a chef workstation or somewhere, where can I find the history or log about who sent the knife command and when, ...
1
vote
1answer
90 views

Chef-Server fails startup

I've installed chef-server from the chef apt repository using these instructions and everything seems to work until I try to start chef-server. I'm running Debian Squeeze in a Linux container (LXC). ...
1
vote
1answer
64 views

Server specific usernames for each SSH connection in Chef with Knife

To set a default user for each ssh connection, I would normally adjust my .ssh/config file to Host *.server1.com User joe Host *.server2.com User mike I am now using Chef. The knife tool ...
1
vote
1answer
919 views

How to create hash or yml from top level attributes values of node?

I have a chef recipe where I want to take all of the attributes under node['cfn']['environment'] and write them to a yml file. I could do something like this (it works fine): content = { ...
4
votes
2answers
2k views

Why can't “knife data bag from file” find existing json file on chef server?

Summary: I'm running into a problem with "knife data bag from file", where knife doesn't recognize the .json data bag file pulled down from a remote git repo. Background: I'm currently trying to ...
2
votes
1answer
391 views

no default value for required attribute

What is the recommended approach for using an attribute in a resource, like a template, when there is no reasonable default for that attribute. The attribute value is expected to be provided at ...
3
votes
1answer
149 views

Two chef nodes (two environments) on one machine

We are resource limited here, and want our qa and staging environments on one machine. We are going to run separate binaries and confs for our app & supporting services. According to chef docs ...
0
votes
1answer
148 views

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 ...
7
votes
2answers
3k views

Simple Windows+Linux server provisioning? Chef/Puppet/Ansible etc [closed]

I'm primarily a developer, part time devops; and manage servers here and there for my projects. I want to automate provisioning of web/app/database servers going forward for my projects I manage a ...
0
votes
1answer
154 views

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 ...
0
votes
1answer
81 views

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. ...
1
vote
1answer
129 views

Where should I configure software installed by 3rd-party chef recipes?

I'm provisioning a Vagrant virtual machine with Chef and it's amazing, but I'm unsure where I should put code to configure software installed by 3rd-party chef recipes. For example, I'm installing ...
3
votes
1answer
256 views

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 ...
0
votes
0answers
80 views

Why doesn't Chef use my default attributes in my development environment?

I inherited our company's Chef repository and I'm learning as I go. One issue that I've found a workaround for (but would like to understand or avoid if possible) is that attribute defaults specified ...
2
votes
2answers
728 views

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 ...
2
votes
1answer
97 views

Chef / performance data

I am looking into making performance data like page response time integrated with Chef. Does anyone has a clue what would be the starting point? I have already deployed Chef, I have enabled ...
1
vote
2answers
5k views

Copy a whole directory structure in Chef

I have a directory structure (sample data) that I want to copy from within a Chef recipe. It seems the only way to do this is to explicitly create each individual directory and file: directory ...
0
votes
1answer
54 views

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 ...
3
votes
2answers
820 views

How to organize deployment process in Chef-controlled environment?

I have a web Linux-based infrastructure which consists of 15 virtual machines and over 50 various services. It is fully controlled by Chef. Most of the services are developed internally. Basically ...
5
votes
1answer
122 views

Looking for a Backup/Recreate Solution

I have 2 crucial servers that are running an unsupported & ancient version of Linux, and there's currently no disaster plan for them. I want to set up a backup system for them, and be able to ...
3
votes
3answers
1k views

Upload everything with Knife

Let's say you have a standard Chef repository with directories as follows: cookbooks data_bags environments roles Is there way to upload it all in one go? Otherwise you have to do this: knife ...
3
votes
3answers
3k views

Chef bootstrap giving 401 unauthorized

I'm trying to bootstrap a new chef node by running: knife bootstrap <server ip> -x lewis -N gitlab --sudo But I get the following output: [Mon, 03 Sep 2012 14:45:17 +0000] INFO: *** Chef 10.12.0 ...
0
votes
0answers
471 views

Variable / Attribute scope within Chef recipes and execution order

I'm trying to get the rvm_passeneger recipe to work, I seem to having problems with the order of execution and variable/attribute scope. ...
3
votes
1answer
138 views

knife on Windows inconsistently reads ~\.ssh\knife.rb on Management Workstation

I am implementing a new instance of (Open-source v10.12) Chef in an existing environment. Currently the environment is mostly Windows, but more Linux is being introduced. I have used Chef in a ...
3
votes
1answer
375 views

omnibus installed chef and rvm issues

I'm trying to figure out one thing and would like someone's else view on this. I installed chef on my Ubuntu server (11.10) via the awesome omnibus install. It worked perfectly fine. I was able to run ...
0
votes
2answers
556 views

multiple-account managing on linux

I would like to know how to solve multiple user account managing on Linux. For example, I have few linux servers. Few employee have access to all linux servers with their own usernames. When these ...
0
votes
1answer
832 views

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 ...
11
votes
1answer
5k views

How to find the Chef environment in a recipe?

I want to run a cookbook_file resource only if the current environment is "dev". How can this be expressed? The documentation suggests this: In a recipe, a code block like this would be useful: ...
4
votes
1answer
424 views

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 ...
33
votes
0answers
5k views

What advantages/features does Puppet or Chef offer over Salt (or vice versa)? [closed]

I am looking at rolling out a new configuration management tool to replace our home-grown solution. The defacto standards are Chef and Puppet, both of which are Ruby-centric (though can be used to ...
1
vote
1answer
652 views

Shared files/templates between cookbooks

We have multiple cookbooks which reference the same files and templates and were wondering if there is a reasonable way to ensure all of these are the same file to ensure that none go out of date. An ...
4
votes
2answers
804 views

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 ...
1
vote
2answers
1k views

Install `mysql` gem for use in `chef-client`?

I am trying to deploy a rails application using chef, for the mysql cookbook to create a database, it needs the mysql gem. The mysql gem is installed system-wide by using an Ubuntu package, but this ...
2
votes
1answer
436 views

Configuring Chef-Solo-different override_attributes in one role

First off, im using Chef Solo and I would like things to stay as automated as possible. So I have a problem that i'm not quite sure how to solve. I'm setting up the deployment of a lot of different ...
4
votes
2answers
2k views

Chef recipe read attributes from another node

I'm writing a very simple chef cookbook to manage the deployment of a web app, and I have a chef managed node for the database server, and would like to bring in the IP address (and a few other ...
1
vote
1answer
554 views

How to use an SSH Gateway with Chef's Knife Bootstrap

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based ...
3
votes
1answer
262 views

Going from Vagrant in development to chef-solo in production, and getting a “FATAL: NoMethodError: undefined method `delete' for #<Chef::Role” error

So I have a set of cookbooks/roles that are configured to work with vagrant. I am now in the process of deploying an application, and I want to run these identical cookbooks using chef-solo on my ...
11
votes
2answers
6k views

Is there a more elegant way to remotely run chef-client?

This is the way recommended in the Chef Fast Start tutorial: knife ssh name:mynode -a ipaddress -x ubuntu -i mycredentials.pem "sudo chef-client" This is really clumsy. Is there really not a ...
2
votes
1answer
418 views

Can you upload chef cookbooks directly from a hosted Git repository?

I'm learning Chef. My cookbooks are on Github. It seems the workflow goes: Install cookbooks locally (download them from Github with knife site install) Upload cookbooks to server (knife cookbook ...
2
votes
2answers
557 views

Chef 'notifies' fails to restart or reload services

I'm using chef-solo v10.12.0 to configure an Ubuntu 12.04 VM, and I keep running into an issue where services don't restart or reload as expected when a configuration file is changed. There are no ...