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

learn more… | top users | synonyms

0
votes
1answer
129 views

Integrating Foreman 1.7.1 with Chef12

I am trying to integrate a new Foreman 1.7.1 with a new Chef 12 server. I've installed them both and I wish to integrate it (https://www.youtube.com/watch?v=mtR0mCeisbs will be my inspiration). I ...
0
votes
1answer
19 views

Run community chef cookbook

I want to configure a mailserver on AWS with this cookbook: https://supermarket.chef.io/cookbooks/postfix-dovecot I have chef-client and chef-dk installed. I have downloaded the package and changed ...
3
votes
1answer
1k views

Why am I getting 'undefined method' exceptions when executing 'run_list add', 'run_list remove' and 'rackspace server delete'?

[Originally posted this to opscode forum, got no response] I’m testing out a free hosted chef-server account and multiple subcommands are failing with ‘Unexpected Errors’. Perhaps my version and the ...
0
votes
1answer
61 views

Chef: mongodb::user_management failing in aws opsworks with “NameError: uninitialized constant Mongo::MongoClient”

I have been using the mongodb cookbook successfully to create user accounts for months but recently something has changed and I can't figure out what it is. The default recipe completes without ...
1
vote
2answers
1k views

Installing something from source using chef, should I be doing some checks

I'm installing something from source using chef and the script resource. Should I be doing a check for the resultant executable etc. as part of it? e.g. What I currently have is: remote_file ...
1
vote
2answers
931 views

How to install APC on a vagrant box running Ubuntu 12.04 with PHP 5.4?

In my "Vagrant" file I have this line: chef.add_recipe("php::module_apc") But it gives me this error: [2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc ...
0
votes
0answers
16 views

Chef Repo Contents and Synchronization

I've been using chef-solo to provision development Vagrant VMs for over a year now and now we're looking at managing our full infrastructure (alpha, staging, production) using a locally hosted ...
0
votes
1answer
13 views

How to run chef-client on relevant nodes when cookbook is uploaded?

I want my chef-client to run when something is changed in cookbooks. Is it possible? I find this "run once in X min" not very optimal. When I change something I want it to be applied immediately so I ...
3
votes
2answers
1k views

Running “sudo chef-client” does not update with latest version of cookbook

Here's the situation: I have a recipe that I've been working on to install monit and install a custom monit configuration. That configuration has changed the past couple of days. I have a chef ...
1
vote
2answers
228 views

Chef-client not updating a cookbook from the server

I have a chef cookbook (for apache2). It fails to work on one node. So I'm trying to tweak it and update it, but the node doesn't seem to download the new version. I have been able to upload ...
5
votes
1answer
67 views

Can you use configuration management (Puppet/Chef) behind a firewall?

I'm tasked with designing and implementing configuration management (Chef) for a infrastructure where the production servers are completely segmented and isolated behind a jump box. ...
1
vote
2answers
220 views

Chef Reconfigure Errors preventing successful run

I am quite new to chef and is now trying to figure out why the following two errors are preventing me from a successful install. Recipe: private-chef::redis_lb * ...
0
votes
1answer
26 views

Protect Chef config when a node is compromised

Imagine that one node of a system gets compromised. If I understand correctly hacker will be able to get all configs for all servers in a system using chef's API. Is that correct? If yes, is there a ...
3
votes
3answers
168 views

File Caching Proxy Server For Config Management Software (Chef)

I have several servers that I manage with Chef. They all belong to one network and bandwidth among them is big in contrast to bandwidth to outer internet. The problem is: many times there is a need ...
0
votes
2answers
1k views

Chef: Knife ssh connection error

I try to run a command on all my nodes but get the following error. The chef docs say it should work like this. me$ sudo knife ssh "name:*" "uptime" -x myuser WARNING: Failed to connect to -- ...
0
votes
0answers
28 views

Install Chef modules on Windows Workstation

So I've installed the Chef client(https://www.chef.io/download-chef-client/) on a Windows machine then promoted my machine as a workstation, but I can't install any modules. I am using Windows 8.1 ...
1
vote
1answer
14 views

Any way to re-run the chef-solo provisioner on a packer built machine?

I'm building VirtualBox machines using Packer and the chef-solo provisioner. Is there a way to re-run chef from within the VM as recipes are updated without needing to re-run packer build?
3
votes
1answer
474 views

Vagrant: I need a provisioning system with no dependecies

Getting off the ground with a vagrant config. Host is Windows. I have a really simple config, so I wanted to use Ansible, but got this: [default] Running provisioner: ansible... The executable ...
0
votes
1answer
29 views

How to check if chef databag exists?

I want to check if there is a slaves databag. If there is one, and it contains data then I want to execute an action for every slave. I have the following code: slaves = data_bag('slaves') if ...
0
votes
1answer
34 views

chef remote_directory permissions

I have checked https://docs.chef.io/resource_remote_directory.html and http://joerussbowman.tumblr.com/post/58241535331/chef-remote-directory-is-basically first of all. chef-client version 12.2.1 ...
1
vote
0answers
12 views

chef-shell as chef-client in chef-zero mode (local mode)

Can I run chef-shell as chef-client when my chef-client is running in chef-zero (chef-local) mode? The parameter used to run chef-client in zero mode is -z. However using -z with chef-shell just ...
0
votes
1answer
20 views

What's the difference between Chef Cookbooks and Chef Roles?

My current understanding: You can add a recipe to a client. A recipe can contain other recipes. You can add a role to a client. A role can contain other roles and recipes. Then what's the ...
2
votes
2answers
2k views

In Chef, how do I access attributes set in the environment JSON from cookbook attributes files?

I have a chef system where we have multiple environments and have attributes set in evironment JSON. I'm having trouble accessing these from within cookbook attribute files and recipes.
1
vote
1answer
918 views

How to use an SSH Gateway with Chef's Knife Bootstrap

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based ...
0
votes
2answers
57 views

Managing thousands of machines with approval controls [closed]

We are a startup that is just getting up to speed and running into the problem of managing hundreds of machines, and having to do nightly and weekly releases to all of them as well as managing their ...
0
votes
1answer
42 views

CentOS7 - Chef(open source) setup error

Been wrestling with setting up a chef-server at the moment on CentOS7. chef-admin seems to be doing fine. I "(1) sudo wget ...
17
votes
5answers
940 views

When is it appropriate to use a configuration manager (eg Puppet / Chef / Ansible)?

At my current workplace, I look after two VMware host machines, an OpenBSD physical machine, three Debian VM's, and six Windows Server VM's (2008/2012). I'm considering implementing a configuration ...
-1
votes
4answers
731 views

multiple-account managing on linux

I would like to know how to solve multiple user account managing on Linux. For example, I have few linux servers. Few employee have access to all linux servers with their own usernames. When these ...
0
votes
1answer
1k views

Chef fails to bootstrap

I'm trying to create my first Chef node. I've got my laptop as the admin machine and VMs alaska and kentucky as the Chef server and node, respectively. This is strange because it's coming back as "No ...
8
votes
2answers
4k views

How do I provide dpkg configuration parameters to aptitude or apt-get?

When installing gitolite I find that: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. ...
3
votes
2answers
1k views

Chef 'notifies' fails to restart or reload services

I'm using chef-solo v10.12.0 to configure an Ubuntu 12.04 VM, and I keep running into an issue where services don't restart or reload as expected when a configuration file is changed. There are no ...
1
vote
1answer
172 views

Berksfile source doesn't recognize self-hosted Chef server

I have a self-hosted Chef server. I can knife upload to that server, and otherwise interact with it. Therefore, my knife.rb works fine. I have recently parameterized a cookbook in order to make it the ...
0
votes
1answer
2k views

How to install tomcat for many instances with CHEF?

I would like to install tomcat with a recipe through chef at some folder, like /company/tomcat6.0.45-port8081. But sometimes I have many instances of tomcat, like /company/tomcat7.0.41-port8082, ...
1
vote
1answer
42 views

Error 'you must supply a name when declaring a config resouce' when deploying a rails app to OpsWorks

When moving a rails app from engine yard to OpsWorks, I am getting the following error: Error executing action `deploy` on resource 'deploy[{{ app path }}]' you must supply a name when declaring a ...
0
votes
0answers
22 views

Chef: Cookbook website not found

I've been following several guides and read thru documentation trying to get knife-solo to provision a VM for me. Knife solo will work with Berkshelf (used to manage a library of chef cookbooks), so ...
0
votes
2answers
134 views

Issues using knife bootstrap on FreeBSD 10

I'm fairly certain this is unrelated to my cookbook, since the following occurs immediately after connecting: 0.0.0.0 Unmatched '. 0.0.0.0 distro=FreeBSD: Command not found. 0.0.0.0 distro: Undefined ...
0
votes
2answers
1k views

Chef-solo cannot locate an nginx recipe template

I have been recently experimenting with Chef. I thought I would attempt to rebuild my personal web server using chef-solo. It's an AWS instance running the Amazon 64bit Linux AMI. My first ...
1
vote
1answer
850 views

Bootstrapping servers with chef, and changing the SSH Port

I have a full set of recipes that are working to bootstrap a server at Rackspace, it configures and installs everything as needed. Now, I want to change the default port SSH runs on. This is fairly ...
2
votes
0answers
37 views

Centralized ubuntu update server

I am in the process of configuring a Central Update Server so we can better manage the security updates on our ubuntu based cloud servers. Here is my plan so far Install apt-mirror on cloud instance ...
-1
votes
0answers
10 views

Connecting more, then 7 instances 13612 Error

Presently i'm working with AWS Opsworks to deploy mongodb cluster. I'm using https://github.com/netinlet/chef-mongodb_replicaset repository to deploy. Unfortunately when i'm trying to connect more ...
0
votes
0answers
23 views

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

Chef cookbook execution not working step by step

My recipe config looks like this: package "scribe" do action :install end package "supervise-scripts" do action :install end remote_directory "/var/service/" do source ...
1
vote
1answer
25 views

Sharing Chef Server with Apache

I have a server that shares multiple web based applications for our entire development team. This server has both chef-server and apache installed. Unfortunately, the nginx server that chef installs ...
1
vote
2answers
275 views

test-kitchen with Windows guest converging fails with WinRMAuthorizationError

I'm trying to get test-kitchen working with a guest Windows VM. I've followed a lot of Matt Wrock's excellent blog posts. I've set up a working Windows Vagrant box, used the right test-kitchen and ...
0
votes
1answer
62 views

How I can Add variables to PHP.ini using chef

I am using redis into my project using chef. We are creating server automation, so everything is done using chef recipe's only. I have installed php-redis using chef. Now I need to add two variables ...
2
votes
1answer
22 views

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

Cannot kitchen init as non-root

I am trying to use test-kitchen, a tool to test chef (etc) cookbooks with virtual machines. However when following the guide and doing kitchen init --driver=kitchen-vagrant, I get the following ...
2
votes
1answer
62 views

Trying chef cookbooks before uploading

We're using Vagrant & Chef to provision the staging VM for our app. Once I have a working cookbook, I upload it to chef-server and Jenkins hook ensures the staging env gets updated. However, ...
0
votes
1answer
40 views

How can I get the correct client.pem file on a bootstrapped Windows Azure VM?

I'm really struggling to bootstrap a Windows VM in Azure using knife azure. I have my image and I've created the winrm firewall rule and configured winrm per the instructions. The machine spins up ...
0
votes
0answers
37 views

Knife Bootstrap: Curl Peer Cert Cannot be Authenticated

I am just picking up Chef and I just got my first bare metal server, my server has nothing installed other than minimal centos6 and ruby. Bare with me if this is a bad question. When I run my knife ...