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
24 views

how to list chef nodes that are not pingable - knife

I have bunch of ec2 nodes registered to chef server, more than half of them were terminated earlier. I still see them as nodes under knife node list. How do I delete them that are not pingable? My ...
0
votes
1answer
149 views

How can I install phpmyadmin on OpsWorks?

I am trying to install phpmyadmin on opsworks using a custom cookbook. I am very new to chef and so I really don't know what I am doing. I'm using this cookbook: ...
0
votes
1answer
160 views

How to trigger chef-client on all nodes from my workstation

I have 5 nodes and all of them have one setup cook-book in common. Now I would like to add another task in this common cookbook that would configure SQL server for me on all the nodes. Is there a ...
2
votes
1answer
447 views

How do I get knife to bootstrap an EC2 instance in a public VPC?

I don't know much about routing and subnets and vpc's, I never had to use those with my old AWS account. In my new AWS account, I started a new Amazon Linux AMI instance (ami-043a5034). The security ...
0
votes
3answers
410 views

Chef Server 11.4 SSL certificate failure when bootstrapping a node

I'm trying to bootstrap a RHEL 5 server with Chef 11 Chef-Client using my Chef 11 Work station through a Chef Server 11.4. However, I am receiving the error below. ...
0
votes
1answer
162 views

knife azure image list doesn't return User image

I'm trying to create and bootstrap a Windows VM in Azure using knife-azure. I initially tried using a Public Win 2008 r2 image, but quickly found out that winrm needs to be configured before this can ...
-1
votes
2answers
397 views

chef-client stop working just since 2 days ago

I'm having some troubles with new windows node deployments. The chef-client fails with this error I want to solve this, but i don't know were to find errors which can help me to solve this. ...
0
votes
1answer
217 views

chef remote_file is throwing Encoding::UndefinedConversionError

I have the following in a chef recipe: remote_file '/tmp/zint-2.4.2.zip' do source 'https://s3.amazonaws.com/mybucket/zint-2.4.2.zip' checksum ...
4
votes
1answer
86 views

Is there a streamlined way to export settings from an existing CentOS 5.10 server for local Vagrant provisioning? (Puppet, Chef, shell, or otherwise)

I've recently started the process of learning how to use Vagrant for spinning up a local development environment. (after getting frustrated with the various WAMP stack options) Vagrant is great so ...
1
vote
1answer
320 views

How to test installation of Chef Server using ChefSpec?

I'm getting started writing tests for my Chef cookbooks. I'm using ChefSpec to unit test my cookbooks. I need to install a Chef Server on one of my hosts and I would like to write a test for that. So ...
2
votes
1answer
135 views

Chef: Load Attributes from encrypted databag in json role

I'm want to use the postfix cookbook for chef. The sasl password is expected to be in an attribute. So usually you would do this: "default_attributes": { "postfix": { "sasl": { ...
0
votes
1answer
534 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
28 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": ...
-1
votes
3answers
454 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
105 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 ...
2
votes
2answers
347 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
189 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
175 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
245 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
41 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. ...
-2
votes
1answer
603 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
89 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
591 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
23 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 ...
2
votes
1answer
566 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
114 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 ...
0
votes
1answer
635 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
232 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
1answer
284 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 ...
3
votes
3answers
115 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
194 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, ...
1
vote
1answer
924 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) ...
1
vote
0answers
177 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
27 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
747 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
145 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
616 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
249 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 ...
10
votes
2answers
2k 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
237 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
106 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
72 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
415 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 ...
2
votes
2answers
172 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
132 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
1answer
248 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 ...
2
votes
2answers
2k 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, ...
1
vote
2answers
1k 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
88 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 ...
2
votes
1answer
706 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 ...