Questions tagged [chef]

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

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 fully automated infrastructure: when a new server comes on line, the only thing you have to do is tell Chef what role it should play in your architecture.

More information can be found in the Documentation.

635 questions
0
votes
1 answer

Can I get a clear summary of how and when each part of a chef cookbook is loaded/executed?

Here's what a chef cookbook looks like: . ├── attributes │   ├── default.rb │   └── bla.rb ├── files │   ├── default │   │   └── some_file.txt │   └── windows │      └── some_file.txt ├── libraries │   ├── mylib.rb │   └── default.rb ├──…
MiniQuark
  • 3,875
  • 2
  • 21
  • 23
0
votes
1 answer

Pass override attribute via command line for chef-solo

For chef-solo, is it possible to pass the override attributes via command line? Because sometimes the attribute is just adhoc decision and is diffent from host to host, e.g. hostname, we don't want to create a json file for the sake of adhoc…
Ryan
  • 5,831
  • 24
  • 72
  • 91
0
votes
2 answers

Can't get yum repository (ius) to install because of (epel) dependency that seems to be installed

So I'm trying to install the epel repository and then also install the ius repository. I'm managing this server with chef, and my run list goes ... "recipe[yum::yum]", "recipe[yum::epel]", "recipe[yum::ius]", ... And it installs the epel repository…
jondavidjohn
  • 101
  • 3
0
votes
1 answer

chef error on centos 5.3

I am trying to configure chef on my CentOS sever... sudo chef-solo -c ~/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz should install basic things.... but Iam receiving…
uzumaki naruto
0
votes
1 answer

unable to bootstrap ec2 ubuntu instance

Hi I am trying to bootstrap an ubuntu ec2 instance using knife command line tool, but when ever I run this command knife ec2 server create -x ubuntu --region ap-southeast-1 -i ami-0cdf4965 -S key --identity-file ~/key.pem -G default -r…
Jeevan Dongre
  • 741
  • 2
  • 17
  • 33
0
votes
1 answer

Cloning and deploying existing Linux builds via Chef, Puppet, etc

Is Chef, Puppet, etc able to be pointed at an existing Linux server and suck down 100% of the 'stuff' that would be required to build the server OS/package-versions/custom-files/etc including the build order? (Guessing not, but believe I was lead…
dynodano
  • 3
  • 1
0
votes
1 answer

How to set up/customize configuration-specific attributes in a recipe?

I am starting to use chef to automate setting up build machines for a build farm. Some of our dependencies here are machine specific (e.g. license key for proprietary compiler), and other recipe attributes would benefit from being customizable (e.g.…
David Cournapeau
  • 243
  • 1
  • 4
  • 13
0
votes
2 answers

Storing extra data in .json role/environment files for external (i.e. non-Chef) applications

I’m thinking about converting my roles to JSON syntax and storing some extra data in there for an external, non-chef application (specifically Vagrant). My idea is that if I stick to a convention in which each machine only gets a single role, I can…
Mike Conigliaro
  • 3,195
  • 2
  • 25
  • 24
0
votes
3 answers

Running recipe name

In Chef, is possible to get the recipe name when this recipe is running? I want to add recipe name on logging/debugging. Something like: Chef:Log.info "#{recipe_name} xxxx"
Sacx
  • 2,581
  • 16
  • 13
0
votes
1 answer

Assigning default attributes at a time

Why in all OpsCode's cookbooks there is a default[:netkernel][:version] = "4.1.1" default[:netkernel][:install_url] = "http://apposite.netkernel.org/dist/1060-NetKernel-SE/1060-NetKernel-SE-4.1.1.jar" default[:netkernel][:frontend][:port] =…
0
votes
1 answer

Omnibus uniform Chef version install across platforms

So I'm looking for a uniform way to install chef on a number of different servers running different platforms. I know I can use the omnibus installer for this, but I also need a way to lock or otherwise keep the versions consistent across machines.…
CRThaze
  • 151
  • 8
0
votes
1 answer

Is it safe to change the IP address and domain name of an Chef Node?

I have a Chef Node that I'm initially setting up on one network that I need to (physically) move to another network. When this happens, I want the IP address and domain name to change, and the Node name and simple hostname to stay the same. I know…
Stephen C
  • 551
  • 4
  • 18
0
votes
1 answer

cscript fails when executed by winrm via but works when executed locally

I'm running the following as a part of chef deployment of a windows server. cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi The error I get is: CScript…
sclarson
  • 3,684
  • 22
  • 20
0
votes
2 answers

Provision server with chef-solo as root?

I'm using knife to bootstrap my VM with vanilla Debian 7.0 installation. In bootstrap stage I'm just setting sources.list, updating & upgrading system, then I install buil-essential, rsync and ruby1.9.1 (with rubygems). As a last step, my bootstrap…
srigi
  • 121
  • 1
  • 4
0
votes
1 answer

Using Chef Server, what is a good pattern for removing duplicate calls to a particular resource?

I have a recipe with multiple calls to a given resource, let's say directory. The calls to directory, for the most part, have very similar parameters (i.e. same owner, same action, etc.) - i.e. a lot of duplication. However, there is a particular…
kries
  • 5
  • 1
  • 3