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

chef: bash resource ignores .netrc file

I'm using a .netrc file for storing username & password because my git repo is only available via https and needs authentication. In my recipe I got bash "update code" do cwd ...
0
votes
0answers
9 views

Chef Server on Amazon 2014.03 fails to configure

I'm trying to configure Chef Server 11.1.8 on Amazon Linux 2014.03 (on EC2 instance). The RPM installs OK: sudo rpm -Uhv private-chef-11.1.8-1.el6.x86_64.rpm then run sudo ...
0
votes
0answers
12 views

Clone git repo via https without entering the password manually

I've got a stack in Amazon OpsWorks and within this stack I got a RailsApp Layer. The repository is only accessible via https and is protected with username and password. On my machine I can clone the ...
2
votes
1answer
48 views

Hardening Ubuntu with Docker.io

I am new to Docker so please keep in mind. The old way: Create cloud instance Add Ubuntu OS Provision / harden Linux via Chef Develop app locally Deploy via Capistrano or some other ...
1
vote
1answer
18 views

Reusable piece of code in Chef to be used several times in recipe(s)

I need to reuse some scenario in my cookbooks - create several users on a single machine and install same software for each of them. Installing the software is a repeating operation which I'd like to ...
-2
votes
0answers
44 views

Chef or Puppet or other [closed]

Currently for server management I'm using Sprinkle scripts https://github.com/sprinkle-tool/sprinkle This tool was ok, when we managed 3-5 servers. Now we have more and more nodes coming, in that case ...
0
votes
1answer
16 views

Installing dependencies of cookbook in the cookbook itself?

While execution of recipes I need to use an external dependency. I see 2 choices to work it out: Using include_recipe inside of my recipes. In this case user might be caught by surprise because of ...
0
votes
1answer
16 views

can 'knife diff' be told to ignore binary files?

I maintain many chef cookbooks that are worked on by various teams. Some teams choose to include binary files in the cookbooks. Before uploading a modified cookbook i like to 'knife diff' to double ...
-1
votes
0answers
39 views

how do i run my custom recipes on AWS OpsWorks?

I've created a GitHub repo for my simple custom recipe: laravel/ |- recipes/ | - deploy.rb |- templates/ |- default | - database.php.erb I've added the repo to Custom Chef ...
0
votes
1answer
44 views

Best practices - Conditionals for Chef resources without guard attributes?

We are setting up a cluster using Apache Ambari. Our Chef run is interrupted by the need to use Ambari to provision the Hadoop cluster. Current installs are a three part process: Initial Chef run ...
1
vote
1answer
16 views

Referencing client.rb values in a recipe

How can I get the value for a key in a nodes client.rb via a recipe during chef-client runs? Example: client.rb path_to_foo "/opt/foo" recipes/default.rb log config[:path_to_foo]
0
votes
0answers
9 views

Knife leaves stray processes on my system

I'm seeing stray knife processes on my system. I have an automated ruby script that runs bundle exec knife bootstrap against various nodes. Most of the time the knife process completes and goes away, ...
1
vote
2answers
54 views

Chef recipe order of execution redux

Given the following recipe: ruby_block "block1" do block do puts "in block1" end action :create end remote_file "/tmp/foo" do puts "in remote_file" source ...
1
vote
0answers
103 views

Chef, installation of nokogiri with system libraries fails on Centos 6.5

I'm trying to fix a recipe that needs the gems nokogiri and savon on Centos 6.5. Since the simple chef_gem 'nokogiri' require 'nokogiri' chef_gem 'savon' require 'savon' does not work (chef says ...
0
votes
1answer
15 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
56 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
35 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 ...
1
vote
1answer
61 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
1answer
102 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
85 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
1answer
87 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
78 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
59 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
0answers
116 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 ...
1
vote
1answer
49 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
187 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
19 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
219 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
64 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
21 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
68 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
103 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
81 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
112 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
20 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
371 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
50 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
242 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
17 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
164 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
95 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
323 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
125 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
141 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
76 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
130 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
477 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
110 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
422 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 ...