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

How can I use chef to configure a basic system starting from a template?

I am working on the setup of a new virtual infrastructure that will eventually become the production one. I am at the very beginning and I want to use Chef as automation tool. I've already worked with ...
0
votes
1answer
39 views

How to resolve the chef error “can not find a plugin for dependency linux::network”?

There are no google hits for this error message. I am attempting to run chef-client on a server that has run it successfully in the past. I do not know what changed to produce this error. Here is the ...
0
votes
1answer
23 views

Issues using knife bootstrap on FreeBSD 10

I'm fairly certain this is unrelated to my cookbook, since the following occurs immediately after connecting: 0.0.0.0 Unmatched '. 0.0.0.0 distro=FreeBSD: Command not found. 0.0.0.0 distro: Undefined ...
0
votes
1answer
21 views

Changing Chef Server IP Address

My understanding was that the Chef server is identified to clients by the FQDN, rather than by the IP address (and all the configuration I've done suggested this as well). I found myself in the ...
0
votes
1answer
50 views

Chef order of execution

I have some code that sets node attributes based on a search. I then want to use those attributes in a template. It appears the template is compiling before my code that figures out the values. So it ...
0
votes
0answers
11 views

Assign chef roles to layer/instance

I'm trying to get the following cookbook running in OpsWorks: https://github.com/lusis/chef-logstash/ Following their documentation I have to assign roles to my server(s) to get stuff running. They ...
0
votes
1answer
16 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 ...
0
votes
1answer
14 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
1answer
39 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 ...
0
votes
1answer
26 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
1answer
38 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 ...
1
vote
1answer
13 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
17 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
0answers
41 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. ...
-4
votes
1answer
147 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
2answers
36 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: ...
0
votes
1answer
29 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
63 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
3answers
68 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
1answer
31 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 ...
-1
votes
1answer
74 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 ...
0
votes
0answers
117 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 ...
2
votes
1answer
52 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 ...
1
vote
2answers
72 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
35 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 ...
0
votes
1answer
83 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
35 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
30 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
2answers
68 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
63 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
31 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
94 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
142 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
89 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
19 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
29 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
37 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
165 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
56 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
1answer
201 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
51 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
120 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
57 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
42 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
32 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
103 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
31 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
12 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, ...
3
votes
2answers
713 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
447 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 ...