Questions tagged [chef]

For question on usage of the configuration management tool Chef

Questions about Chef on Devops should be about methods using Chef.

For assistance on recipe code not working, please post on Stack Overflow under tag. Don't forget to include a Minimal verifiable example and your error log.

Before asking, take the tutorials on https://learn.chef.io, all basis are explained.

For open ended/opinion question prefer other medium like:

63 questions
18
votes
2 answers

How do I include my internal CA certificate to validate SSL exchanges in Chef?

We do use an internal Certificate Authority to create server certificates in my company. We also have to deal with a transparent proxy doing SSL interception (MITM). I regularly encounter SSL validation errors due to Chef not knowing the CA …
Tensibai
  • 11,416
  • 2
  • 37
  • 63
12
votes
5 answers

Are configuration management tools appropriate to use as deployment tools?

Off the back of my answer to the question: How can DevOps help to improve Software Escrow procedures? Tensibai had the question: What would necessitate Capistrano on top of puppet or chef? My response was to post a link to Noah Gibbs' article "Do…
Richard Slater
  • 11,747
  • 7
  • 43
  • 82
10
votes
3 answers

How should we automatically rebuild immutable infrastructure when new packages are available?

We're going to be using Terraform to automate our infrastructure deployment and Packer to create the machine images deployed by Terraform. By following immutable infrastructure design principles, we will implement patching by creating a new image…
9
votes
2 answers

How to Chef things that don't exist yet

Let us say I have some Chef code like: require 'mixlib/shellout' yum_package 'somepackage' myvar = Mixlib::ShellOut.new('/bin/somecommand').run_command.stdout.strip Where /bin/somecommand does not exist yet because it is installed by somepackage.…
Gaius
  • 1,096
  • 10
  • 18
9
votes
1 answer

What is Chef Automate

I've noticed that now most of the Supermarket's recipes are using Chef Delivery (aka Chef Automate). There is little information about it on their site, and it looks for me like it is a "pig in a poke": first you pay and they you know what you've…
madhead
  • 265
  • 2
  • 6
9
votes
1 answer

What steps could be taken to inherit and override some parts of a Chef cookbook?

With 3200+ cookbooks available in Chef supermarket, often there is already a cookbook that covers the need I need to solve. Almost every time there is some change required to a template, or a variable, or a resource in an existing cookbook. What are…
Evgeny Zislis
  • 9,023
  • 5
  • 39
  • 72
8
votes
2 answers

Why not use configuration management tool instead of Dockerfile?

I'm pretty new to Docker and configuration management tools. At first I started writing bash scripts to provision my Vagrant boxes for my development machines, but now I've switched to using Chef for that so that I can use the same source to…
7
votes
3 answers

Using Chef for multi-node operations

I have an application I would like to configure using Chef that spans multiple nodes. Let's say that the process of doing it consists of Do a thing on node A capturing the output Do another thing on node B with that output Back to node A now for…
Gaius
  • 1,096
  • 10
  • 18
7
votes
1 answer

Organizing Chef cookbooks

Is it 100% required to store all the cookbooks under chef-repo? This seems a little bit inconvenient for me, I'd prefer to store solution cookbooks in the application codebase, or just as a standalone git repos. I know that tools like knife rely on…
madhead
  • 265
  • 2
  • 6
7
votes
1 answer

Vendoring - what is it?

In various tools there is the concept of "vendoring". i.e. Ruby's bundle, and Chef's Berkshelf. "vendor" is not a verb and in documentation it's often assumed that I know what it means. Can someone help shed some light on what it is and the benefits…
7
votes
2 answers

chef database cookbook deprecated

I frequently use chef database cookbook and it is being deprecated doesn't receive any updates. They even disabled issues on the github so it is not possible to check if any issues I encounter have been discussed and possible solutions were…
AlexD
  • 179
  • 5
7
votes
2 answers

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

when I modified one of my cookbook that I tried to add a cookbook dependency in berks file cookbook name, '=0.1.0', git: 'ssh://url:xxx/cookbook', tag: '0.0.1' and then tried to converge it which throws an error 'fatal: ambiguous argument…
pandey
  • 949
  • 2
  • 9
  • 18
6
votes
1 answer

What can Vagrant, Puppet, Docker, Chef do for a Full stack Web developer?

First of all let me say that I'm aware of related questions here in SO: Vagrant, Docker, Puppet, Chef Vagrant + puppet + docker chef-server - chef-solo - vagrant - puppet... which is correct for me? Or articles out…
user652
6
votes
4 answers

DevOps practice on AWS instances

I am new to DevOps, started learning the different tools. I would like to practice all of the tools like Jenkins, Chef, GIT, Puppet, Ansible, Docker, Kubernetes, etc . My question is If I would like to practice all of the tools on AWS Free tier…
EDU_EVER
  • 121
  • 3
5
votes
1 answer

Zip/tar a folder using chef resource

Can someone help me how to take backup for a specific folder and also zip/tar those folders. I am using this for taking a backup actually, but I would like a compressed output: bash "backup #{dir_name}" do user 'user' cwd "#{path}" code…
pandey
  • 949
  • 2
  • 9
  • 18
1
2 3 4 5