Questions tagged [chef]

For question on usage of the configuration management tool Chef

Filter by
Sorted by
Tagged with
1 vote
1 answer
17 views

How does one perform systems testing against multiple interdependent machines?

I'm looking for a platform that allows me to run tests against multiple, closely-coupled systems. We deploy different products to Red Hat family machines - think Rocky Linux, CentOS, Fedora, RHEL, etc....
1 vote
2 answers
118 views

When do I have to renew an SSL certificate in Chef?

In the annual process of renewing SSL certificates, I have a list of infrastructure that needs updating. This usually included Chef. This is followed by an arduous and painful process of getting every ...
0 votes
1 answer
35 views

Setup multiple Raspberry Pi different network configurations

For multiple projects we are setting up 2 to 6 RPi's per project. Each project runs on a different network and for some of these networks we can use DHCP, for others the RPi's have to connect using a ...
0 votes
0 answers
6 views

What commonly used Chef resources don't support Chef's --why-run flag?

Chef's --why-run flag hypothetically allows a "preview" of running a Chef change to see what would change prior to the actual change. The big idea is that it is a "no-operation"/ ...
18 votes
2 answers
5k views

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

IaC Deployment in Azure with Terraform + Chef vs. Puppet vs. Ansible for Data Engineers

I am an Azure Data Engineer and try to leverage the IaC benefits in this area of Azure Data Factory, Azure Databricks, Azure SQL & Synapse, Azure Power BI, Azure IoT. After some research I figured ...
9 votes
1 answer
1k views

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 ...
6 votes
1 answer
230 views

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

How to have Kitchen CI run a script on success?

I've got a Chef repo that uses test-kitchen. I have a pretty good battery of tests, and when I run the tests and they're successful, I have a vendor.sh script that does some cleanup and a Berks vendor....
2 votes
1 answer
210 views

Chef 12: Error while uploading cookbook

I am using Chef and trying to upload a cookbook on chef-server but getting an error in response: {"error":["Invalid key all_files in request body"]} However, I can see the list of cookbook using ...
1 vote
2 answers
123 views

Chef14 Load a provider in a recipe Chef::Provider::DeployKeyGithub

I have a problem during migration of chef-client 12 to chef-client 14 and seems that the old way to load Providers is different in chef14 Chef::Provider::DeployKeyGithub cannot be load ...
1 vote
2 answers
123 views

How to manage the versioning of Azure SQL Databases?

I am looking for a tool that will manage the versioning of Azure SQL Databases, and check for missing schema or migration scripts and apply those changes based on what is missing. Any other solutions ...
1 vote
1 answer
74 views

Does the Chef bash resource create history entries?

I know that using a password in the command line is a bad idea because bash commands can be recorded in history. If I run a command in the chef bash resource though, when I look up the history I don'...
1 vote
1 answer
278 views

Chef resource to register gitlab runner automatically

We would like to automate installation of gitlab runner using chef. we are successful with it. Now, the Issue is regarding registering gitlab runner with chef resource. we have gone through chef ...
0 votes
1 answer
212 views

Chef - Setting Unique Node Attributes [duplicate]

I'm fairly new to Chef and have been writing recipes for Kiosks that we use at work. I've created a role for the Kiosk that contains a set of attributes, however one of these attributes is a unique ...
1 vote
1 answer
918 views

How to use in Chef different attributes values for different nodes

I have a cookbook that is being used to deploy some software on a chef nodes. I use it when bootstraping a node and then remove it from the run_list since I need it only to run once. I don't know if ...
0 votes
1 answer
3k views

Chef - assign a value to variable in execution or converge phase

I am creating a recipe that has two resources. The initial VPN IP address is a empty valued string. Upon execution of the first resource, a IP address within the range 10.12.xx.xx is set. Then a ...
1 vote
1 answer
71 views

Chef vs Ansible: will configuration be applied if connection is lost during configuration pulling/pushing?

Scenario Configuration management tools like Ansible or Chef often have a master/controlling machine and the machines they are controlling (agents). Question What if the connection between master ...
0 votes
1 answer
53 views

Cookbook get and set dynamic URL

There is a static Artifactory URL being used to grab a semantically versioned artifact and deploy it to JBoss. The deployment aspect of the cookbook is already fleshed out. However, I would like to ...
0 votes
1 answer
133 views

kitchen verify hangs on centOS, but not Debian

.kitchen.yml --- driver: name: vagrant provisioner: name: chef_zero platforms: - name: debian-9 - name: centos-7 suites: - name: default run_list: - recipe[foo::default] ...
1 vote
1 answer
131 views

Chef remote_file set maximum number of re-directions to zero

I am trying to implement the below wget download command using chef remote_file resource. But I couldn't find a way to avoid the re-directions. The URL that I am trying to access may sometimes be ...
1 vote
1 answer
308 views

Running consul in the background using Chef

I am trying to create a Chef cookbook that will run Hashicorp Consul in the background and will continue with the rest of the recipe and not get hung on starting Consul. I have tried the & method ...
3 votes
1 answer
2k views

Inspec tests conditional on OS version

What is the idiomatic way to tell Inspec to run test X on OS version A and test Y on OS version B? I'm aware of the technique of dumping the Chef node object to a JSON file in /tmp but that isn't ...
2 votes
1 answer
174 views

Chef Provisioning for canary deployment and orchestration

I am looking for best tool that, does below jobs for deployment. Configuration: 1) Configuration of deployment node machines in specific environment 2) Configure no of service instances to be alive ...
1 vote
2 answers
38 views

Chef syntax with "do" statement

While reviewing a chef.io whitepaper, I encountered the following syntax: # Load your AWS credentials databag include_recipe ‘aws’ aws = data_bag_item(‘aws’, ‘main’) aws_elastic_lb ‘elb_qa’ do ...
1 vote
0 answers
592 views

Chef git private repo using username/password [closed]

I am wanting to clone a git repo using the git resource in Chef but instead of SSH like everywhere seems to show I want to use just username/password. The security of the repo is not important but don'...
2 votes
1 answer
679 views

How do I run the InSpec using a wrapper profile?

This blog post describes wrapper profiles in detail: https://blog.chef.io/2017/07/06/understanding-inspec-profile-inheritance/ At the very end of the post, it references a Git repo that contains an ...
3 votes
1 answer
401 views

Configure AWS cli inside chef cookbook

I am working on setting up something with S3 and Chef, I have AWS CLI installed and working but I need to figure out how to specify the access ID and the secret access key. I know there are cookbooks ...
7 votes
2 answers
742 views

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

Planning a backup system using postgress, chef and vault

As the title says I am working on planning a way to backup postgres using chef and vault. Idea is that we already encrypt the backups from postgres using a key (random binary string) and we would like ...
3 votes
2 answers
130 views

Chef username/passwords best practice for multiple nodes

I've been playing around with Chef to evaluate it as a potential CD tool for the company I work for. So far I've been using it with Vagrant to provision a VM. In my recipes I've been retrieving the ...
1 vote
1 answer
252 views

Customizing deploy key and ssh wrapper path for git cloning through application_git cookbook

I am using Chef 12.0.3 for managing servers. Earlier I was using application cookbook for cloning repository. But now in higher version of application cookbook, this support is moved to new cookbook ...
3 votes
1 answer
54 views

Tool preferences for rapidly spinning up and spinning down k8s clusters

My team hosts several completely different projects on a production k8s cluster with a given configuration. We use AWS (and are starting to use Google Cloud). We have a QA cluster as well, that "sort ...
7 votes
2 answers
40k views

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

What is a suitable strategy for provisioning Chef Server through code?

Background I am tasked with setting up a Chef server on our Azure Cloud for a new DevOps automation project. We are using the Resource Manager model for Azure, in case it's relevant. We will likely ...
0 votes
1 answer
328 views

How to access ephemeral storage of EC2 instance?

I've got ephemeral storage setup in Scalr as part of the role. The instance is spinned up by Chef and it seems it is running fine (it's using ephemeral0 device mounted as D: drive). I've tried to use ...
-2 votes
2 answers
143 views

How to create Chef Package for Redhat. I have 2 rpms agents and 2 yaml files

Installation steps. There are two ELK agents to install: Metricbeat Copy the attached file metricbeat-6.0.0-x86_64.rpm to the target server Execute the command: sudo rpm -vi metricbeat-6.0.0-x86_64....
4 votes
1 answer
154 views

What's missing from this simple recipe that creates a user?

I've spun many boxes in the cloud before, but was growing tired of going through the same dance; and as I'm trying to get familiar with Chef, I figured, that's a good use case to do a little learning. ...
1 vote
1 answer
3k views

terraform chef provisioning - cannot validate certificate for 10.90.239.223 because it doesn't contain any IP SANs

While configuring the chef provisioner I am running into the following error after running 'terraform apply' chef_environment.terraform_01: Post https://10.90.239.223/organizations/mykitchen/...
4 votes
1 answer
248 views

difference between packer and matchbox

I have this setup to standup a baremetal machine: Terraform-> Matchbox \-> Chef-> Docker My colleague has a setup to standup VMs in AWS: Terraform-> Packer-> Chef-> ...
9 votes
3 answers
429 views

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

Chef (well, Test Kitchen) hanging when using local cookbook

I am new to Chef, trying to put together a POC for my company. So I've got a project that has two cookbooks under the cookbook folder. One cookbook is a "base" cookbook called 'hydra-base', the other (...
0 votes
2 answers
50 views

Which Chef software do we need to install for Windows?

I am using Windows 8.1. Which Chef do I need to install to cover all Chef modes like workstation, node, and chef-server? I want all three of these in my Windows 8.1.
8 votes
2 answers
4k views

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

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

Creativity use case scenario? [closed]

i am a devops learner, just finished graduation actively looking for jobs in the field of DevOps. I am learning many tools like GIT, Jenkins, Chef, Docker , Nagious, ELK, AWS, etc. Can anyone link ...
2 votes
1 answer
215 views

Sharing Gems between Chef and System Ruby

I know about the chef_gem resource obv, but in the interests of good system hygiene I would like to avoid as much as possible duplication, so I would like to share Gems between the embedded Ruby ...
6 votes
4 answers
380 views

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

Logging the source of remote file when using array using Chef [closed]

We are currently using remote_file with source as an array. This allows us to check multiple servers for the file we want, in case the primary server is down. We want to log which source remote_file ...
9 votes
2 answers
811 views

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 ...