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

-1
votes
0answers
10 views

How to create a chef recipe that delete a files [on hold]

I have just deployed my Yii App to an Amazon Web Services EC2 instance, using Amazon OpsWorks. I have several chef recipies for my PHP Server Stack, that properly download my codebase, and then run ...
0
votes
0answers
11 views

Unattended chef client installation

Has anyone tried performing an unattended chef client install - installing chef client from the node itself? There is not much information provided in the documentation. Also, I don't want chef-solo ...
0
votes
2answers
23 views

Chef recipe - To remove a package when you don't know the exact package name

I am aware of the package resources, what I am struggling with is how do I find the exact package name? Since there will different versions of OS in different nodes, how to write a recipe to uninstall ...
0
votes
1answer
19 views

Unattended install (upgrade) of cassandra via chef

I'm creating a cassandra upgrade/install recipe with chef. package "cassandra" do version "2.1.8" action :install end When I install over the top of an existing version I get prompted about new ...
1
vote
0answers
15 views

Create chef recipe by passing values dynamically, from properties file

I created a chef recipe which has the installation of a specific rpm mentioned in it. This rpm has a version number which needs to be loaded dynamically from a properties file (which is itself created ...
1
vote
1answer
24 views

knife client list does not list the workstation

I have a chef server installed on a CentOS VM anf I have workstation setup on another CentOS VM. When I run the 'knife client list' I see: org-validator.pem and my workstation does not get listed. ...
1
vote
2answers
16 views

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 ...
0
votes
0answers
13 views

Backup and recovery of Chef 11 server

I have found https://docs.chef.io/server_backup_restore.html. While the document mentions chef 11, the two directories it mentions to backup (/etc/opscode and /var/opt/opscode) don't exist but ...
4
votes
1answer
53 views

What do the default opsworks cookbooks actually do?

The company I'm working for is making a move to AWS and so I've been given the opportunity to start investigating the various services they provide. OpsWorks looks really go for rolling out mass ...
0
votes
1answer
35 views

Can CHEF have different databags in different datacenters

Chef 12 has the notion of organizations, and environments. How would you logically model different data centers? For example, if you have two data centers, with 2 environments. us-datacenter ...
0
votes
0answers
58 views

Windows Server 2012 R2 Automatic Login

I'm trying to setup automatic login on a Windows Server with a chef script however all the answers I have found thus far don't seem to be working for Windows Server 2012 R2. I followed the registry ...
0
votes
1answer
65 views

How can I use the apache2 cookbook from supermarket.chef.io in AWS OpsWorks?

I have a cookbook that is setting up some simple apache configuration and I am using the apache2 cookbook from SuperMarket. I'm trying to run my cookbook's recipes using AWS OpsWorks with Chef ...
1
vote
1answer
13 views

Conditional dependencies in CHEF

I have a complicated software stack that I manage with 2 recipes. recipe[stack::foo] recipe[stack::bar] foo is installed on every server, whereas bar is installed on only a subset of servers. bar ...
0
votes
0answers
19 views

Opsworks & Chef - Customize each app deployed with same recipes

I have a set of recipes that deploy python apps to AWS instances, they work well. I want to deploy two different apps with slight differences, like one needs async worker code installed and the other ...
0
votes
0answers
41 views

chef nagios monitor node outside VPC in AWS

I used the chef community cookbook to setup nagios inside a VPC in AWS. All my nodes in my chef setup are found correctly and added to nagios automatically, and the nodes that are inside the VPC with ...
0
votes
1answer
34 views

get chef template path from template

In my chef erb template, I want to get the path the template is being copied to. So it looks like like: MY_PATH=<%= ###HOW DO I GET THE TEMPLATE PATH### %> Is there a way to get that?
0
votes
0answers
67 views

ERROR: OpenSSL::PKey::RSAError: data is too large for key size", when trying to upload cookbook 'learn_chef_iis'

I am receiving the following error message: "ERROR: OpenSSL::PKey::RSAError: data is too large for key size", when trying to upload cookbook 'learn_chef_iis'. I was following a CHEF tutorial and now I ...
0
votes
1answer
39 views

How to retrieve an organization's private key?

I've just installed Chef Server version 12, and created an admin user and default organization myorg. I see the organization in the Chef Manage GUI, and its public key. Using a workstation that's ...
0
votes
1answer
32 views

ChefSpec - Coverage when testing for include_reciepe

I' am trying to write ChefSpec tests for some of our Cookbooks. One of those is including a lot of other cookbooks, to setup an Jenkins CI Enviroment. Iam wondering how other people are testing the ...
2
votes
1answer
64 views

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 ...
0
votes
0answers
24 views

Chef run fails to start service but execution continues

I have noticed that my Chef (Happens in 12.3 and 12.0.3) runs do not generate a failure when a service fails to start for a service resource. For example: service 'pound' do supports :restart => ...
0
votes
0answers
73 views

Chef / Vagrant - Kitchen cant connect to Update Jenkins

Iam getting crazy with Chef, Vagrant and Test-Kitchen. We have an customized Jenkins Cookbook, it works on "normal" Clients without Cooperate Network Proxys, but fails behind with the following ...
0
votes
1answer
33 views

How to get Get Amazon User Name / User ID from Opsworks deployment hooks?

I'm trying to convert a Capistrano deploy script to OpsWorks recipes. I'm doing so far so good, except for Slack integration. In the Capistrano script, it says John Doe is deploying FooProject ...
1
vote
2answers
141 views

how to configure jenkins via chefzero vagrant provisioner

using the jenkins cookbook 2.2.2 ==> https://supermarket.chef.io/cookbooks/jenkins i can bring up jenkins in vagrant vm using chef_zero provisioner with chef.run_list = [ ...
0
votes
1answer
32 views

Run community chef cookbook [closed]

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 ...
0
votes
0answers
11 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 ...
0
votes
0answers
36 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
40 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 ...
5
votes
1answer
117 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. ...
0
votes
1answer
36 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 ...
2
votes
1answer
73 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?
0
votes
0answers
83 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 ...
0
votes
1answer
219 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 ...
2
votes
0answers
60 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
78 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 ...
0
votes
1answer
207 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
66 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
116 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 ...
17
votes
5answers
1k 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 ...
0
votes
0answers
72 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
1answer
127 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 ...
2
votes
0answers
66 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
vote
1answer
237 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 ...
1
vote
0answers
84 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
50 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
1answer
52 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 ...
2
votes
1answer
29 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. ...
0
votes
0answers
85 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 ...
1
vote
1answer
61 views

Why does Web Platform installer try to repair itself every 40 mins?

I'm seeing Web Platform installer do a repair/reinstall on my win 2008 r2 server (Build: 7601: Service Pack 1). Web Platform installer has been initially installed on this machine via chef (the 'iis' ...
0
votes
1answer
168 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 ...