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
6 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
9 views

Install Chef modules on Windows Workstartion

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
16 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
0answers
7 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
16 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
0answers
27 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 ...
0
votes
2answers
54 views

Managing thousands of machines with approval controls [on hold]

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
25 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 ...
16
votes
5answers
840 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
19 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
35 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
35 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
7 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 ...
1
vote
1answer
23 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
14 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
22 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
24 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
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. ...
0
votes
0answers
30 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
53 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
53 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 ...
0
votes
0answers
57 views

Invalid Redirect error when trying to create user in Chef Server 12

When I try to create a user in Chef Enterprise Server, I am getting an error sudo chef-server-ctl user-create admin m n ******@i&&&.com chefrocks --filename admin.pem ERROR: ...
1
vote
0answers
11 views

Add a group to a group with Chef on Windows

I'm trying to manage a Windows server with chef, and need to create some users, add them to a group, and add that group to another group. user 'test.user' do password 'password' action ...
0
votes
2answers
42 views

Server Snapshot Capture For Cloning [closed]

I have a situation and would love to hear your suggestions. Situation: I have a server that is hosting several important workflow applications on cloud. Changes are made to few add-ons apps on the ...
1
vote
0answers
31 views

Rollout approach for centOS/RHEL linux servers to achieve centralised authentication through AD

We have 3 environments testing develop and production each having more than 40 Linux servers. Need to establish centralized authentication through AD for all these environment. Which is the best ...
1
vote
1answer
127 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
0answers
34 views

How can I use AWS placement groups with ironfan?

I would like to use AWS placement groups in order to decrease latency between my front-end server and back-end servers in a particular availability zone. We use the Chef orchestration layer Ironfan, ...
0
votes
1answer
268 views

Connection refused while setting up Chef Server 11 on Ubuntu 14

I just spun up an Ubuntu 14.04 VM on HPCloud.com to practice Chef. Following this turial I setup a DNS on HPCloud, as well as set the hostname in /etc/hosts to chef-server.mydomain.com When ...
0
votes
1answer
113 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
136 views

Ruby/Chef include_recipe and know variables from parent file?

I am trying to use a local variable in an included file. I get the error that's it's not defined. I am not sure a way to do this, do you? I have a recipe folder with: recipes/ development.rb ...
1
vote
2answers
239 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
31 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 ...
1
vote
0answers
139 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 ...
0
votes
0answers
109 views

Chef Server 12 reconfigure fails with RabbitMQ

After installing Chef Server 12 on CentOS 6.5 everything went well but now I've removed the premium addons that I've installed manually (using RPMs) there is an issue with RabbitMQ: *It might be ...
1
vote
1answer
135 views

Chef - Automatically add nodes to chef server

How would you configure a VM so that it will automatically register with a chef server? I know that I could use knife bootstrap, however that is very tedious if you are starting dozens of servers at ...
0
votes
0answers
114 views

Vagrant up chef provision fails on normal up

So I thought I had this all working, but it seems I'm still missing something. When I vagrant destroy --force && vagrant up, everything works just fine. It creates the box and chef ...
1
vote
1answer
34 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 ...
0
votes
1answer
42 views

Is it okay to delete .git directory in AWS OpsWorks S3 deployment?

I'm using AWS OpsWorks S3 deployment for quite some time. Suddenly the deployment fails. When I checked the instance, it turns out the disk is full. When I checked the release path inside the ...
0
votes
0answers
27 views

How to skip override a specific value in Chef template

Chef template is getting name and value from attributes: { "name" : "email.username", "value" : "<%= node.conf[:email_username] %>" }, { "name" : "email.password", "value" : "<%= ...
0
votes
1answer
99 views

opsworks/chef databag where to put the json file?

Hello I'm reading this howto: https://github.com/imoglobe/opsworks-cookbooks/blob/master/user/README.md but it does not mention where to put the data bag in the cookbook with the list of users in json ...
0
votes
1answer
203 views

Can't use chef-zero with vagrant files

I have a Vagrant (1.7.2) set up with 2 vms. I want to use chef (latest version now 12?) to provision them. I am trying to get one to be a nagios server and the other to be a machine monitored with ...
2
votes
1answer
21 views

Chef node.name not being set

What I am working with: Debian Wheezy 7.6 Chef: 11.14.6 Up to this point, I have always used node.name to set the hostname of an instance. Example: { "name": "web-01", "chef_environment": ...
0
votes
1answer
33 views

knife cookbook site downland with all dependencies

I'm just starting out with chef, and I'm following http://gettingstartedwithchef.com. One thing it suggests is using knife cookbook site download $COOKBOOK_NAME to get community cookbooks. However ...
0
votes
0answers
36 views

Chef and sensitive config data between environments

I'll start out by saying I'm pretty new to Chef and certainly have only scraped the surface of what it can do. Have spent hours reading and playing. So far I have successfully written some ...
0
votes
1answer
38 views

Is there a way to update attributes files directly in chef server without uploading cookbook again

I am using hosted chef environment in windows.I need to update the attribute file during each chef client run. Currently ,I update it manually and upload the cookbook in chef server.Is there any way ...
0
votes
1answer
118 views

Chef Server 12 installing Chef Client 11

I have a master machine I just upgraded from Chef 11 to Chef 12, but when I go to create a new EC2 node it want to install client 11.18 instead of 12.01 or 12.03. I'm not sure if that's causing the ...
0
votes
0answers
33 views

Unable to set jdoconfig.xml and appname.properties templates for the war file deployed in tomcat7/webapps

Recipe: include_recipe "lgjava" include_recipe "lgtomcat" remote_file "/usr/local/tomcat7/webapps/web.war" do #this file places web.war in the specified path source "http://path/to/web.war" ...
1
vote
1answer
126 views

Can Chef AWS cookbook query EC2 instance tags?

Chef has the official AWS cookbook (https://github.com/opscode-cookbooks/aws), which allows for spinning up of AWS resources, as well as updating of resource tags. Can the custom resources introduced ...
0
votes
0answers
304 views

Chef Issue bootstrapping windows VM using winrm via https

Chef Server(RHEL 6.5): 11.16.4 Windows endpoint: Windows 2008 The bootstrapping works fine over http (with winrm config allowUnEncrypeted = true and basic auth = true). Now we are trying same thing ...
1
vote
0answers
77 views

Requires to reboot a linux machine only if the new kernel is install/update

we have an use case where we need to reboot a linux machine only if the new kernel version is installed/upgraded through yum_package. currently I am using chef-solo for running this. ruby_block ...