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
0answers
11 views

Chef's knife ec2 plugin create server inside VPC with public IP

So I'm using knife ec2 plugin to create a server, inside a VPC, and then provision it with chef-solo. Here is my basic command: knife ec2 server create -S private-key -I ami-1234 ...
0
votes
1answer
9 views

Installing nginx via chef Role is not applying my changes

I wrote a role to use the default nginx cookbook. The role is not applying any of my attributes. It keeps installing nginx 1.2.1. { "name": "nginx", "json_class": "Chef::Role", "chef_type": ...
-2
votes
0answers
34 views

Are there any CM tools for managing a cloud cluster composed diverse resources accessible by diverse interfaces? [closed]

Mostly I'm looking for a practical solution to configure and manage clusters of resources in the cloud. Typically the necessary resources to be configured and managed are composed of: load balancers ...
-1
votes
3answers
79 views

Can I administer Amazon RDS instances with, Chef? Salt? Puppet? Ansible?

On the face of it, it looks like I need to be able to install some software daemons on the target nodes for these things to work. If I can't do that (e.g. an Amazon RDS instance), what are my options? ...
0
votes
0answers
14 views

Preferred “Chef/Berkshelf/Vagrant” Way to Change Java Versions

On a Linux box, what's the preferred, best-practice way of switching Java versions? For example - let's say that I want to build & test out my app on Java 7, and then Java 6. Here's a few ...
1
vote
0answers
17 views

Using Custom or Official Cookbook [closed]

I'm evaluating whether to use the official, Chef/OpsCode cookbooks to install java, maven, etc. Here's my list of pros and cons for using a custom/hand-rolled one v. Chef cookbook. Custom Cookbook ...
2
votes
2answers
16 views

Chef: How to run a resource on notification only?

I'd like to declare a resource that I want to run multiple times on notification and only on notification. How can I prevent the resource to run on its own after it is declared? Is there some way to ...
0
votes
1answer
17 views

How can I create a new Azure VM in an existing cloud service with knife azure (Chef)?

I have tried using the "--azure-connect-to-existing-dns" parameter but that doesn't work. I'd like to create Azure VM's, but have them inside an already existing cloud service instead of creating a ...
1
vote
1answer
25 views

Chef recipe for interactive install

I'm new to chef and trying to set up an Ubuntu VM for testing by installing our product automatically. I am able to download the .tgz, extract it and execute the installer using a bash resource. I ...
2
votes
1answer
23 views

Post Azure VM creation bootstrap process - Azure user-data mechanism during VM creation?

After creating an Azure Windows VM, how does bootstrapping (winrm or ssh) completed? I'm using knife azure and using either winrm or ssh, the VM is created but fails to bootstrap. Do I have to ...
0
votes
0answers
7 views

Enabling chef-validator as admin from web UI

I set up a Chef-server instance on Digital Ocean following OpsCode's instructions. Everything up through Step 8 works just fine. However, I'm having trouble enabling chef-validator as an admin. ...
-3
votes
1answer
153 views

Why chef, puppet, ansible, salt, etc.? [duplicate]

The devops tools ecosystem is puzzling to me. Instead of shell scripts that work everywhere everyone in the server orchestration/management space is bolting on their own proprietary formats. Ansible ...
0
votes
1answer
17 views

Single sign-on with Chef

I'm getting my personal infrastructure set up (Gitlab, Jenkins, etc.) and I'm planning on using OpenID for single sign-on. I understand that SSO works for Gitlab and Jenkins. Would I be able to ...
1
vote
1answer
49 views

Can I use Chef-Solo to provision a server created with knife-eucalyptus

I am able to create a new server using knife-eucalyptus like so: knife euca server create The server gets created but provisioning fails with the following message: "ERROR: Errno::ENOENT: No such ...
0
votes
1answer
11 views

Knife ec2 Create

I am successfully running chef server and able to bootstrap server with my chef recipes. I would like to know is there any plugin which we can use to launch multiple servers using knife ec2 create ...
1
vote
1answer
35 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 ...
0
votes
0answers
64 views

Force execution of a chef script before the first one finishes

Following is section of code that is creating the problem for me. Everything works fine but then in order to upgrade percona, I need to run the 'mysql_upgrade' step while the 'mysql_safe' step is ...
1
vote
1answer
115 views

ERROR: cannot verify www.opscode.com's certificate

I am using OSS Chef 11.0.4 on Ubuntu 12.04 LTS , while running Knife ec2 create command I am getting below error Bootstrapping Chef on ec2-xx-xx-xxx-xx.compute-1.amazonaws.com ...
1
vote
1answer
49 views

How to delete or rollback a cookbook just after creating?

I just created a cookbook by knife cookbook create ruby -o site-cookbooks. But I noticed after that rails is a better naming. I want to delete the cookbook and create another one. But I couldn't ...
2
votes
0answers
58 views

Out-of-order chef recipes causing apt package install to fail

I'm writing a Chef recipe to install among other things nginx and Phusion Passenger. The short summary is that the recipes on my run list are not executing in the order I expect, and that's causing an ...
2
votes
2answers
34 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 ...
-1
votes
2answers
63 views

How to use wrapper recipes in chef?

How can I cal a custom recipe from my default recipe? If I try recipe 'my-base-server' I get an error 1 argument for 0 What I want to achieve is a logical division of my recipe into base, ...
0
votes
1answer
183 views

uWSGI permissions issue

I'm trying to set up a chef recipe that will get my site running and everything seems to be working fine except for uWSGI which is giving me the following error: *** has_emperor mode detected (fd: 6) ...
0
votes
0answers
47 views

Chef gem_package not using the binary path

I'm trying to install the gems "sensu_plugin" and "mixlib-shellout", on a windows server 2008r2, from a recipe. In this last one, I have the following code : %w{ sensu-plugin mixlib-shellout }.each ...
0
votes
0answers
22 views

What accounts does clamav use on different Linux distros

I'm trying to fix a problem in a Chef recipe for installing / configuring ClamAV which is caused by the recipe using the wrong default user/group name for the clam service account on some platforms. ...
0
votes
1answer
101 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 ...
1
vote
1answer
74 views

How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?

Summary How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server? Context Our ...
0
votes
2answers
91 views

Permission to write using 'deploy' user

I'm currently new to Chef and Capistrano. I'm using version 3.x of Capistrano to deploy Rails 4 application. I have successfully bootstrapped a server using chef solo. One cookbook that I'm using is ...
1
vote
1answer
65 views

Bootstrap Chef on Vagrant Box

I'm trying to bootstrap a Vagrant box using hosted chef server. knife bootstrap testbed001.me --sudo -x root -N "testbed001" However, the command throws an error: Bootstrapping Chef on ...
7
votes
1answer
274 views

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless ...
0
votes
2answers
50 views

Cloudformation Add Instance to Security Group in Different Region

I have a Cloudformation stack that I create through Jenkins in various Regions. I have a Chef server in one Region with a separate security group. I need new instances created via Cloudformation to ...
2
votes
1answer
48 views

Chef not deleting files in %systemroot%\system32 path using file resource

I am using chef file resource for deleting files inside %systemroot%\system32 path in Windows machine. Resource block is as below, file 'Delete_File' do path 'C:\\Windows\\System32\\my.dll' ...
2
votes
2answers
33 views

Customizing Chef cookbooks

I am trying to setup Munin using Chef, and I'm not sure where to put the customizations that are needed. For example, the documentation on Github says to add munin_plugin 'plugin_name', in the ...
1
vote
2answers
67 views

Adding/Enabling windows feature using chef

I am writing chef cookbook to add/enable some of the windows feature. For enabling I am using powershell_script resource and below is the powershell script. Import-Module Servermanager ...
1
vote
2answers
91 views

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

Prevent sssd from using ldap to authenticate or id specific users for chef

I'm trying to use chef to add/modify a few local user accounts. For whatever reason there are duplicate accounts in LDAP. Since the system uses sssd/pam/ldap, it sees the user as existing, but is ...
0
votes
0answers
125 views

Deploying Rails Application in AWS OpsWorks

I've created a stack, inside this stack have created two layers. Rails App Server (Ruby version: 2.0.0, Rails Stack: nginx & Unicorn, no custom chef recipes) MySQL (using built-in recipes) And ...
1
vote
2answers
411 views

chef upload cookbook failed with network error

I've created a chef server on a virtual machine (192.168.0.21). The server runs fine on https (this is the last version from the opscode site). knife user list (and the other list commands) run fine, ...
0
votes
2answers
344 views

How to install Redis with Chef?

I am trying to install Redis with Chef. I would think, it's easy, since I only want to have the default configuration. So, I add to a Berksfile: site :opscode cookbook 'apt' cookbook 'node' ...
0
votes
2answers
67 views

Can I still benefit from using Chef (et al) when I'm not in total control of the server?

I would like to get better control over my deployment environments, but I share the system administration responsibility with an IT department that has their own (not fully automated) processes for ...
1
vote
1answer
149 views

A chef recipe to install ruby 1.9.3 system wide without rvm nor rbenv

I'm looking for an Opscode Chef cookbook that installs system-wide Ruby version 1.9.3, patch-level latest at the time of the run_list execution. Have done some research and there is a Brightbox PPA ...
1
vote
2answers
145 views

chef-server-webui session not working when access from external IP address

I have installed chef-server on an Ubuntu 12.10 system using the official .deb package for that release. After the installation had finished I run chef-server-ctl test Which reported success, 0 ...
2
votes
2answers
244 views

Chef cookbook continuous deployment

I'm trying to integrate my chef workflow to my usual continuous integration/deployment workflows. I managed already to have a jenkins task which checks out the git repo and runs foodcritic but i ...
0
votes
1answer
43 views

Package versions on chef

We're deploying a multi-node PHP environment using chef. I've written a couple of cookbooks for specific server roles, that install certain packages (mostly using the package manager) the application ...
0
votes
1answer
21 views

Prevent chef from removing members from a group

In my chef recipe I'm creating a group with group "mygroup" do action :create end I have other users that are added and removed from the server which are not managed by chef. When I run chef ...
0
votes
0answers
26 views

Chef: Verify remote_file gpg signature without creating keyring

So we all know that Chef's remote_file resource has this problem: You can give it an attribute for a checksum, but it only uses that to determine if it should download the file again, not to verify a ...
3
votes
1answer
320 views

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

In a role, how to delete a default attribute from hash instead of merge?

Using the resolver opscode cookbook, I set some default info for a regular machine in our Colo. Our production system has two internal resolvers and I want it to load balance between them. This is ...
0
votes
1answer
287 views

Organize code in Chef: libraries, classes and resources

I am new to both Chef and Ruby and I am implementing some scripts to learn them. Now I am facing the problem of how to organize my code: I have created a class in the library directory and I have used ...
0
votes
1answer
51 views

Knife will no longer download recipes from opscode

My setup is on Mac OS X and using Chef solo Somehow after running: knife configure -i I can no longer download anything when I run: knife cookbook download site apache2 I get back: ERROR: ...