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
4
votes
1 answer

How to let chef listen on multiple IPs

I'm currently playing with chef to evaluate whether or not such a configuration tool might help us in our *nix-based environment. For the last few days I'm struggling with one problem I can't find a solution for. Basically, I have 2 private network…
Kenneth K.
  • 41
  • 2
4
votes
2 answers

Can't resolve chef external cookbook dependency in local mode

I'm making my first recipes in chef. I created a cookbook i called common with just one recipe (default.rb): apt_repository "mariadb-repo" do uri "http://tedeco.fi.upm.es/mirror/mariadb/repo/10.1/ubuntu" distribution "trusty" components…
roirodriguez
  • 163
  • 1
  • 7
4
votes
1 answer

why is apt-get install anything is asking to update nginx.conf ? How to fix this using chef?

I was trying to install few packages which are non related to nginx (for example htop) using chef script. But it was failing because its asking to update nginx.conf and nginx/sites-available/default. Which I can select using chef. (Which I also…
Rahul Prasad
  • 257
  • 3
  • 4
  • 9
4
votes
2 answers

Re-bootstrap a Chef node

I've got a Chef node, bootstrapped with knife bootstrap my.example.com --ssh-user USER --ssh-password 'PASSWORD' --sudo --use-sudo-password --node-name my.example.com If I then format the node, how can I get Chef running on it again? I don't want…
Greg
  • 375
  • 1
  • 3
  • 13
4
votes
2 answers

How to specify both a recipe and a version of a cookbook at the same time?

I'm trying to specify both a cookbook version and a recipe on a nodes run_list and so far haven't been able to figure out how to do so. I can specify the version just fine and that works, and I can specify the recipe and that works, but if I attempt…
Orclev
  • 161
  • 1
  • 7
4
votes
1 answer

Where on the filesystem are cookbooks stored on a chef server

I am playing around with orchestration and set mysef the challenge to: build a chef server build loads of nodes after that that are configured by the chef server The issue is that the chef server will need to be built with all the relevant…
seeafish
  • 161
  • 1
  • 7
4
votes
0 answers

Knife upload data bag fails with Chef::ChefFS::FileSystem::OperationNotAllowedError

I am currently doing the Chef tutorials provided at learn.chef.io. In the fourth workshop, one of the steps is to create some data bags and then upload them using: knife upload data-bags/vhosts The actual data bag objects are in .json files within…
4
votes
1 answer

Deploying applications in sets with chef

I am new to chef and planning to implement it in our production environment. We are planning to use chef to maintaining the system state/configuration and as well as for application deployment. During the time of application deployment, the…
Yaalie
  • 175
  • 1
  • 2
  • 8
4
votes
1 answer

Is there a streamlined way to export settings from an existing CentOS 5.10 server for local Vagrant provisioning? (Puppet, Chef, shell, or otherwise)

I've recently started the process of learning how to use Vagrant for spinning up a local development environment. (after getting frustrated with the various WAMP stack options) Vagrant is great so far... slight (ha) learning curve, but looks…
Michael X
  • 43
  • 5
4
votes
3 answers

Vagrant single box with multiple addressable domain.locals

I currently utilize Vagrant and Chef to provision individual linux VMs for different apps. These apps are domain addressable from host, without requiring anything else set up on the host. This is achieved using avahi on the linux guest. Host then…
ljs.dev
  • 1,254
  • 2
  • 9
  • 15
4
votes
1 answer

RedirectLimitExceeded while running chef client

I'm using for the first time chef solo for provisioning a Windows box created with Vagrant. While trying to apply the sql_server cookbook I get the following error: [2013-11-14T09:41:24+01:00] ERROR: Running exception…
Emyl
  • 380
  • 2
  • 11
4
votes
2 answers

Opscode Chef Ohai plugin - How to get a custom plugin to run automatically?

The Ohai docs are incomplete. Here's what I've been able to do so far: I've created a custom plugin that adds one piece of node data called "my_custom_data" it works when I load it manually in IRB I've used the Ohai cookbook to get it loaded on the…
JDS
  • 2,598
  • 4
  • 30
  • 49
4
votes
1 answer

Is it worth it to do revision control/puppet/etc. on a single-server-setup?

After reading What solutions exist to allow the use of revision control for server configuration files?, I decided to install etckeeper on my server. However, it's a one-server setup, so I only have one physical machine and no load balancer, etc.…
strugee
  • 891
  • 11
  • 25
4
votes
2 answers

How to make Chef-Server use Ruby 1.9 on Ubuntu?

I've installed Chef Server on Ubuntu 12.04 using the official instructions, which uses the "omnibus installer" that has embedded ruby 1.8.7. I'm trying to install knife-windows, but when I run gem install knife-windows I get this error: ERROR: …
Eric Lathrop
  • 673
  • 1
  • 5
  • 9
4
votes
1 answer

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 work as I'd expect: supervisor_service…
MattJ
  • 91
  • 1
  • 5