Questions tagged [chef]

Chef is an open source configuration management framework for infrastructure automation.

Filter by
Sorted by
Tagged with
83 votes
7 answers
34k views

Why use Chef/Puppet over shell scripts?

New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. ...
resting's user avatar
  • 1,059
32 votes
3 answers
14k views

What are the benefits of running chef-server instead of chef-solo?

I am looking at automated deployment solutions for my team and have been playing with Chef for the past few days. I've been able to get a simple web app up an running from a base Red Hat VM using chef-...
linusthe3rd's user avatar
18 votes
5 answers
9k views

Best practice for testing chef recipes?

My team has created a large number of chef cookbooks. I was wondering what methods and frameworks I should look into so we can start creating tests to assure that our nodes are configured properly?
linusthe3rd's user avatar
1 vote
2 answers
6k views

How to run a chef cookbook?

It is possible to install software using Ansible and Puppet by downloading a role from galaxy or puppetforge and run it masterless. Aim The aim is to install MongoDB using chef masterless. I just ...
030's user avatar
  • 6,011
55 votes
6 answers
14k views

Puppet vs Chef, pro and contra from users and use cases [closed]

I already googled and read the "to-puppet-or-to-chef-that-is-the-question" article. I'm interested in use cases, real world implementations in which people had choosen one or the other on real ...
drAlberT's user avatar
  • 11k
29 votes
10 answers
14k views

Are configuration management tools (Puppet, Chef) capable of keeping installed packages up to date?

This is probably a simple question for those of you already running configuration management tools. Are configuration management tools such as Puppet or Chef the right approach for keeping installed ...
daff's user avatar
  • 4,869
24 votes
3 answers
21k 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 ...
Willem's user avatar
  • 2,922
18 votes
9 answers
44k views

How to set ulimits for a service starting at boot?

I need, for mysql to use large-pages, to set a ulimit - I've done this in limits.conf. However, limits.conf (pam_limits.so), doesn't get read in for init, only for "real" shells. I solved this before ...
jayofdoom's user avatar
  • 191
13 votes
5 answers
13k views

Knife SSH doesn't find my nodes

knife ssh isn't finding my nodes. I know it should be able to because when I can search for them I find them # knife search node name:* 2 items found Node Name: web_01 ... Node Name: admin ... ...
Max's user avatar
  • 439
8 votes
3 answers
7k views

How do I provide dpkg configuration parameters to aptitude or apt-get?

When installing gitolite I find that: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. ...
user avatar
7 votes
2 answers
5k views

debugging chef recipes on opsworks instances - access to custom json / data bag attributes

I'd like to use a chef-shell session on an aws opsworks ec2 server so I can test some environment and instance specific code I'd like to include in a custom recipe. For example, I'd like to see the ...
Peter M's user avatar
  • 973
7 votes
3 answers
16k 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 ...
loddy1234's user avatar
7 votes
4 answers
20k 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" ...
Andrei Mikhaltsov's user avatar
6 votes
2 answers
12k views

Chef: connection refused for cookbook upload

Be gentle, I'm new to chef, trying to get my environment set up and have some new recipes to upload to my new chef server. I'm able to do some commands, and I was able to knife bootstrap the new node, ...
Eve Freeman's user avatar
5 votes
4 answers
7k 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 ...
gansbrest's user avatar
  • 845
4 votes
1 answer
4k views

How to force actions on "up to date" resources in Chef?

In the following code, I create a service that I would like to start only after deploying files that it depends upon, and to restart it whenever those files change. This very basic recipe does not ...
MattJ's user avatar
  • 91
4 votes
2 answers
5k views

Chef = Node Attribute, how to Manage them locally, versioned and then upload them?

i would be greatfull for help. I do not understand at all, how should i manage the Node data locally with my Git versioning system? Exceprt from the Chef Documentation: http://wiki.opscode.com/...
user avatar
3 votes
2 answers
10k views

Prevent chef recipe from executing previously executed action?

I have a simple recipe like the following, and currently I am using a local file to indicate if the command has been run or not execute "test" do command "sh test.sh && touch /opt/myapp/...
Ryan's user avatar
  • 6,031
2 votes
4 answers
158 views

Configuration Management tools failover behaviour

I'm currently trying to sell "DevOps" to my management one of the things I'm investigating is Configuration Management tooling. One of the big things for us is that we have a system that has high ...
Bicker x 2's user avatar
1 vote
2 answers
3k 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 ...
Or W's user avatar
  • 99
0 votes
1 answer
523 views

How to solve the cookbook naming mismatch between berks and chef-solo?

Follow-up to this answer. Running chef solo: sudo chef-solo -c config.rb -j config.json Starting Chef Client, version 12.16.42 resolving cookbooks for run list: ["terraform"] ======================...
030's user avatar
  • 6,011
0 votes
1 answer
3k 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 ...
iDev247's user avatar
  • 751