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

chef-client "can not find config file"

I have a handful of servers who have not checked into the (in-house open-source) chef server in some time. When running chef-client as root, I get the message WARN: Can not find config file: /etc/chef/client.rb, using defaults. Running with the…
gWaldo
  • 11,957
  • 8
  • 42
  • 69
4
votes
2 answers

Chef Server Migration

A company that I'm contracting with has determined that they need to migrate their Chef (Open-Source Edition) instance to a new server. They do not want to migrate to the Hosted platform. I have not been able to find a guide for how to do this. …
gWaldo
  • 11,957
  • 8
  • 42
  • 69
4
votes
3 answers

Setting properties in chef-client.rb

I have a use-case where a chef recipe needs to use 'remote_file' to fetch a file on a virtual, and the fetch needs to be do through an HTTP proxy. This is not working because chef-client doesn't use the system proxy settings ... it gets its proxy…
Stephen C
  • 551
  • 4
  • 18
4
votes
1 answer

new user with authorized_keys: how to NOT ask for the old password when setting one?

when I create a user in the system with Chef, I always upload its public key to .ssh/authorized_keys. When user logs in for the first time, he is required to "change" his password. For that a stub password is used, so he can enter the "current"…
4
votes
1 answer

Chef: import definitions from other cookbooks

Basically I have a couple cookbooks I've written, and currently they all have the same definition file copied on each. Obviously this is a bad situation, as it makes adding new cookbooks more difficult, and changing that definition file requires…
Mediocre Gopher
  • 803
  • 1
  • 13
  • 24
4
votes
2 answers

chef's knife non deterministic failture to launch new EC2 instances

I'm using chef's knife to launch new ec2 instances. This works generally well, but every 2-3 attempts it fails and I get the following stack: [Sun, 10 Apr 2011 08:11:23 +0000] INFO: Client key /etc/chef/client.pem is not present - registering [Sun,…
Ophir Radnitz
  • 343
  • 2
  • 10
4
votes
2 answers

Chef = Node Attribute, how to Manage them locally, versioned and then upload them?

i would be greatfull for help. I do not understand at all, how should i manage the Node data locally with my Git versioning system? Exceprt from the Chef Documentation: http://wiki.opscode.com/display/chef/Nodes knife node create foobar { …
user60619
3
votes
2 answers

How to add a windows node for chef

I have 3 servers Following this guide for the chefmaster and chefworkstation https://www.itzgeek.com/how-tos/linux/centos-how-tos/setup-chef-12-centos-7-rhel-7.html chefmaster 192.168.1.200 Centos7 chefworkstation 192.168.1.200 Centos7 chefnode…
James Connigan
  • 137
  • 2
  • 13
3
votes
2 answers

AWS Opsworks Chef deployment using S3 Archive without making archive public

I'm trying to use the S3 Archive method to do a Chef deployment in Opsworks. I put the Chef archive in S3 and copied the address of https://s3.us-east-2.amazonaws.com/redacted/redacted.tar.gz. I gave the Instance Profile used by the instance full…
3
votes
0 answers

Install Windows Service using chef and have it run using a Group Managed Service Account

I'm trying to setup a number of dev servers using Chef. I need a Windows Service to run as a managed service account. I have the following in a recipe: windows_service 'My Windows Service' do action :create display_name "My Windows Service" …
Greg
  • 463
  • 2
  • 12
  • 23
3
votes
2 answers

Getting "Couldn't connect to realm service" error while joining rhel7 instance to a domain

I am trying to join a rhel7 node to a domain using a chef cookbook but getting error: realm: Couldn't connect to realm service: Error calling StartServiceByName for org.freedesktop.realmd: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation…
Sameer T
  • 31
  • 1
  • 2
3
votes
3 answers

Do any configuration management systems explicitly support config changes made directly on a server?

In general (as far as I can see) the main infrastructure/configuration management systems (Puppet, Chef, Ansible, and SaltStack) are based on the philosophy that your servers are "cattle" and not "pets", and it seems that they can be antagonistic to…
iconoclast
  • 1,800
  • 2
  • 18
  • 30
3
votes
2 answers

Test Kitchen not detecting winrm and uses SSH for windows guest

I'm new to test kitchen with windows I'm testing chef recipes on a windows machine using Test Kitchen with Vagrant (virtualbox) I have win-2012-r2 box that works fine with Vagrant (both winrm and rdp works) But, when using the same with kitchen, it…
Shan
  • 153
  • 1
  • 1
  • 8
3
votes
0 answers

Chef node not checking in with the server

I've recently moved my clients from one chef server to another, and now none of my nodes are checking in properly. I can manually run 'chef-client' successfully, and I do have the chef-client::default cookbook defined, yet they will not "check…
John S
  • 135
  • 7
3
votes
2 answers

How to test modified chef recipe on single node?

I have a chef server managing a handful of nodes. The server has recipes and data bags with various secrets. I'd like to make changes to one of the recipes and test it on a single node only: I do not want other nodes to update and use the modified…
Patrick
  • 322
  • 6
  • 17