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

Passing silent parameters to windows_package resource chef

I am installing java setup of which is stored in a remote repository. I am using windows_package resource. I want the installation to be user intervention free, so I'm passing '/silent' parameter in ...
0
votes
1answer
14 views

Copy a directory from remote resource using Chef

I want to copy a directory from a remote respository. To copy a single setup/file I am using remote_file resource. but this doesn't work if you want to copy a complete directory. I also checked chef's ...
1
vote
0answers
13 views

how do I handle a URI with spaces in a chef source attributes

I am trying to copy a package from a remote server, into my system and then use chef to install the same. Following is the code I use to copy the package remote_file 'c:/repo/OpenOffice 4.1.0 ...
0
votes
0answers
10 views

Deploying Zend Opcache Using Chef PHP Cookbook

I'm new on Chef. I tried writing a recipe that installs Zend OpCache (for PHP 5.4, since its not built-in yet) using Chef PHP cookbook. I tried using the php_pear php_pear "opcache" do ...
0
votes
1answer
25 views

Connecting more than one workstation to chef server

can I connect more than one workstation to the server at a time. Because whenever I try to connect a new workstation to server,it generates a new pair of keys . hence the previous workstation losses ...
-2
votes
1answer
22 views

Is HP-2920-24g switch compatible with CHEF setup? [closed]

I am using HP 2920-24G switch. In that,I am trying to build the setup for CHEF Client. But it shows error while bootstrapping. Is that HP switch supports CHEF or not?
0
votes
0answers
15 views

AWS opsworks build lifecycle and amazon linux

I've been using Opsworks recently and am really impressed by the GIT integration to deploy apps across my server estate. But I have a requirement due to an external library to use PHP 5.4 > The Amazon ...
0
votes
1answer
36 views

Not able to assign elastic ip using knife

I want to create a EC2 instance using knife with an elastic ip assigned to it. Knife has the option --associate-eip but when I use this option it fails with error "ERROR: Elastic IP requested is not ...
0
votes
0answers
22 views

chef admin account not working

I've installed Chef on my Ubuntu server and everything has been set up properly using sudo chef-server-ctl reconfigure. Now when I navigate in my browser to my chef machine, it won't accept the ...
1
vote
1answer
27 views

How to automatically increase the partition size of multiple Ubuntu nodes in VMware vSphere?

We have dozens of Ubuntu nodes where I have to resize the hard disk drive to different sizes. Currently I’m doing all of the following steps manually: Increase the size of each node’s virtual hard ...
2
votes
1answer
26 views

chef-server-ctl command not found

I've installed the Chef server on Ubuntu Server 14.04. After downloading the Chef package (chef_11.12.8-2_amd64.deb) I ran sudo dpkg -i chef_11.12.8-2_amd64.deb. The package seems to have installed ...
0
votes
1answer
27 views

Execute chef resource multiple times with variables

Consider the following code: node["cloudwatch"]["alarms"].each do |metric,keys| script_name = "/root/.cloudwatch/create_cloudwatch_alarm-#{metric}.sh" template script_name do source ...
0
votes
0answers
11 views

Confused on Chef Recipes and Resources

I found documentation on how to create a recipe to copy files from the chef server to my remote HTTP server. In this particular case, I have a number of "html" files under a directory called, ...
1
vote
0answers
14 views

Chef - handle resources changing the network interface

I'm using chef to deploy an openvpn application in bridging mode to an ubuntu node. In my recipe i'm using a bash resource to create the bridge necessary for the vpn to work. Unfortunately the bridge ...
0
votes
0answers
26 views

How to update nginx in chef server managed environment

I have some servers managed by chef who are running (partly) the same software, e.g. nginx. If nginx has a security issue and there is a new version, what is the best practice to install the new ...
0
votes
1answer
75 views

chef node installation help (bootstrapping)

I am attempting to bootstrap my first node in Chef. I set-up my environment as the following Server: Centos 6.5 running Private-chef-11.1.8 (casino.xxx.com) Client: Centos 6.5 running chef-client ...
0
votes
0answers
26 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
58 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
29 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
82 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
28 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 ...
0
votes
1answer
32 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
20 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 ...
0
votes
1answer
69 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
23 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
11 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
188 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
253 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
18 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
88 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
81 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
165 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
2answers
214 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
122 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
191 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
123 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
71 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
198 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
80 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
329 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": ...
-2
votes
3answers
316 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
90 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
23 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
128 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
147 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
111 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
160 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
28 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
473 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 ...