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

OpsWorks Lifecycle Events, I'm trying to understand Configure better

I have become the interim ops guy until the company I am contracting for finds one that knows a heck of a lot more than me. I'm going through our current setup for OpsWorks and our recipes. I noticed ...
1
vote
2answers
1k views

Merging Chef attribute arrays

Let's say I have two cookbooks, Foo and Bar. In cookbook Foo, attributes/default.rb contains the following: default[:test] = [{:baz => 'A', :qux => 'B'}] In cookbook B, I'd like to expand ...
3
votes
2answers
715 views

Chef 'notifies' fails to restart or reload services

I'm using chef-solo v10.12.0 to configure an Ubuntu 12.04 VM, and I keep running into an issue where services don't restart or reload as expected when a configuration file is changed. There are no ...
0
votes
3answers
48 views

Chef: how can I stop the user_management recipe in the rabbitmq cookbook from adding a guest account?

I am new to chef and want to use the rabbitmq user_management recipe without the default behavior of adding a rabbitmq guest account. I am using chef-server 11.1.3 and rabbitmq cookbook version 3.3.0 ...
0
votes
2answers
1k views

Chef-solo cannot locate an nginx recipe template

I have been recently experimenting with Chef. I thought I would attempt to rebuild my personal web server using chef-solo. It's an AWS instance running the Amazon 64bit Linux AMI. My first ...
1
vote
1answer
712 views

Multiple related resources in chef recipe

I need to run some commands depending on a result of previous execution, which again depends on some package being installed. On the first run, I'd expect something like: install package "XXX" get ...
0
votes
1answer
6 views

Berkshelf Gemfile version conflict

I received the following error from the berks command when trying to init a new cookbook to use Berkshelf version 3 Could not find proper version of berkshelf (2.0.17) in any of the sources Run ...
0
votes
0answers
21 views

chef-solo with docker: Prevent services from starting during build

I am trying to reuse existing cookbooks within docker containers, but most recipes will start the service during the chef client run (e.g. tomcat, apache2). As chef-solo runs during image creation the ...
3
votes
1answer
970 views

Why am I getting 'undefined method' exceptions when executing 'run_list add', 'run_list remove' and 'rackspace server delete'?

[Originally posted this to opscode forum, got no response] I’m testing out a free hosted chef-server account and multiple subcommands are failing with ‘Unexpected Errors’. Perhaps my version and the ...
0
votes
0answers
86 views

Open Source Chef Server can't upload cookbook

I just setup the open source chef server on an Ubuntu 12.04 EC2 instance, I've setup my webui and am able to get responses from my knife commands ie: knife node list, knife client list, knife user ...
-4
votes
1answer
69 views

chef-solo vs chef-client --local-mode

According to the document I should replace chef-solo by chef-client --local-mode. Local mode was added to the chef-client in the 11.8 release. If you are running that version of the chef-client ...
0
votes
1answer
34 views

Version Lock Ubuntu Repository

I found some duplicates of this question, but none of them answered exactly the thing I want to try. I have one QA and one production server managed by chef solo. I want to version lock the apt ...
0
votes
0answers
7 views

How to use LWRP on in AWS OpsWorks?

Ohai, ist there a way to use LWRP for Chef on AWS OpsWorks? How else would I execute this: nfs_export "/exports" do network '10.0.0.0/8' writeable false sync true options ['no_root_squash'] ...
0
votes
0answers
4 views

Is there a way to get Opsworks deploy through cache and not by cloning?

Is there a way to get opsworks to deploy by doing git pull instead of git clone every time?
0
votes
0answers
15 views

One project configuration mechanism that will work on both Elastic Beanstalk and OpsWorks

We have an application that we are successfully deploying to Amazon's Elastic Beanstalk. We use .ebextensions/ to configure our application environment. For various reasons, we may need to begin ...
0
votes
2answers
26 views

Can't capture chef error to a file

If I run the following: chef-client --force-formatter --logfile STDOUT 2>&1 And then control-c it mid-run (or encounter any sort of error) I see this nice error message: ...
1
vote
2answers
229 views

chef deploy start service and restart service in sequence

Chef stop and start service in sequence and would like to ask different procedure. Step 1: framework bootstrap to jboss service bash "bootstrap application" do code <<-EOF ant ...
0
votes
0answers
28 views

Setting Samba passwords using Chef without storing plain text passwords in data bags

We have a server that is configured using Chef. Currently, the way that chef manages the passwords is by simply copying down the samba tdb databases and updating the shadow hashes of each user. ...
1
vote
2answers
823 views

Installing something from source using chef, should I be doing some checks

I'm installing something from source using chef and the script resource. Should I be doing a check for the resultant executable etc. as part of it? e.g. What I currently have is: remote_file ...
2
votes
1answer
246 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 ...
1
vote
1answer
754 views

How to install APC on a vagrant box running Ubuntu 12.04 with PHP 5.4?

In my "Vagrant" file I have this line: chef.add_recipe("php::module_apc") But it gives me this error: [2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc ...
0
votes
1answer
25 views

Any way to set a private ip within vpc?

I've tried using the --private_ip_address but nothing. Anyone knows if there is an option to set up a specific ip address inside of a vpc? I don't want to setup an elastic one. I have a vpn connection ...
1
vote
1answer
766 views

Bootstrapping servers with chef, and changing the SSH Port

I have a full set of recipes that are working to bootstrap a server at Rackspace, it configures and installs everything as needed. Now, I want to change the default port SSH runs on. This is fairly ...
1
vote
2answers
961 views

glusterfs configuration files and chef

Seems impossible to find any info on configuration files for Gluster's most recent version (3.2.x). I'd like to use configuration files as opposed to the CLI because I'd like to automate ...
0
votes
1answer
906 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 ...
1
vote
1answer
57 views

Is storing password hashes in plain text dangerous?

We have a server that is going to be managed through a chef cookbook. Each user for the system is configured using hashes from /etc/shadow. Can we safely store these shadow hashes in our ...
0
votes
1answer
241 views

How do I “duplicate” a server?

I have a EC2 and Digital Ocean servers and I want to re-create them locally (same config files and everything). By local I mean virtual box (vagrant). I had started out by managing them with Chef but ...
0
votes
1answer
22 views

Specifying SSH port with Chef, knife bootstrap

Per Chef's documentation, the -p (or --ssh-port) flag should allow me to specify an SSH port, however, the following: knife bootstrap host.com -x user -P password --ssh-port 5846 -N nodename --sudo ...
0
votes
3answers
366 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
57 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
239 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
votes
1answer
55 views

on nginx webdav, PUT returns 501

I've been charged with converting a webserver from apache to nginx, and I'm currently stuck on getting webdav to work. WebDAV is served by the PEAR webdav server ...
2
votes
2answers
469 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
1k views

How to install tomcat for many instances with CHEF?

I would like to install tomcat with a recipe through chef at some folder, like /company/tomcat6.0.45-port8081. But sometimes I have many instances of tomcat, like /company/tomcat7.0.41-port8082, ...
0
votes
1answer
137 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 ...
2
votes
2answers
488 views

Configuring Chef-Solo-different override_attributes in one role

First off, im using Chef Solo and I would like things to stay as automated as possible. So I have a problem that i'm not quite sure how to solve. I'm setting up the deployment of a lot of different ...
1
vote
2answers
56 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 ...
2
votes
1answer
44 views

Migrate from enterprise chef to open source chef

I tested out Enterprise Chef and its 5 free nodes. Since then, I have setup the open source chef and want to migrate three nodes from the enterprise setup to the open source server. Aside from just ...
0
votes
2answers
47 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 ...
1
vote
0answers
29 views

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

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 ...
1
vote
2answers
510 views

“one-off” use of http_proxy in a Chef remote_file resource

I have a use case where most of my remote_file resources and yum resources download files directly from an internal server. However, there is a need to download one or two files with remote_file that ...
0
votes
1answer
564 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
votes
2answers
339 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. ...
4
votes
2answers
928 views

Chef Server Migration

A company that I'm contracting with has determined that they need to migrate their Chef (Open-Source Edition) instance to a new server. They do not want to migrate to the Hosted platform. I have not ...
0
votes
1answer
34 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
28 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?
2
votes
4answers
798 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
1answer
214 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
1answer
56 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
29 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 ...