Top "Chef-infra" questions

Chef Infra (formerly just Chef) is a DevOps tool for scripting server configurations in Ruby (called cookbooks).

How can you use a Chef recipe to set an environment variable?

How can you use a Chef recipe to set an environment variable? I need to set an environment variable using …

environment-variables chef-infra chef-recipe
Default search path for cookbook

I am a chef Newbie and facing an issue. Every time I run any of the knife cookbook command, I …

chef-infra chef-solo
Understanding Chef only_if not_if

Im not sure I understand Chef conditional execution. I'd like to do some conditional execution based on whether or not …

chef-infra
What is the right way to do add-apt-repository via Chef?

I'm learning Chef and I'm going to do right now for Ubuntu: execute "add-apt-repository ppa:#{node[:some_repo]}" do user "…

ubuntu apt-get chef-infra
What is the correct way to check for the existence of a nested attribute in Chef?

There are multiple ways to check for the existence of a nested attribute in chef, and I'm not sure which …

ruby chef-infra chef-recipe
Chef: How to set EDITOR for knife

When I run below command I get the error mentioned below: $ knife node edit hostname.domain.com ERROR: You must …

chef-infra
Chef: Why are resources in an "include_recipe" step being skipped?

Chef seems to be processing resources in a strange order, causing my build to fail. My main recipe (mytardis-chef/site-cookbooks/…

provisioning chef-infra vagrant
Configuration Management for Windows

Are there any tools for windows like that *nix world has? I am looking for something like Chef or Puppet. …

windows configuration-management chef-infra puppet cfengine
Specifying which cookbooks to run with Chef Solo

I'm using chef-solo to test my cookbooks locally, but I want to be able to only run the cookbook(s) …

chef-infra
How to get a linux command output to chef attribute

I want to get a command output into a chef attribute. Can some one help me how to set that …

ruby chef-infra recipe