The tag has no wiki summary.

learn more… | top users | synonyms

13
votes
2answers
9k views

Is there a more elegant way to remotely run chef-client?

This is the way recommended in the Chef Fast Start tutorial: knife ssh name:mynode -a ipaddress -x ubuntu -i mycredentials.pem "sudo chef-client" This is really clumsy. Is there really not a ...
5
votes
3answers
3k views

Deploy an AWS Auto Scaling groups using Chef Server

You can, for example, to deploy an an Auto Scaling groups consists of web severs, ELB and DB using AWS CloudFormation (with Chef server): ...
3
votes
1answer
218 views

Two chef nodes (two environments) on one machine

We are resource limited here, and want our qa and staging environments on one machine. We are going to run separate binaries and confs for our app & supporting services. According to chef docs ...
3
votes
1answer
278 views

How to monitor and log Chef server and Chef client response time and network trafiic?

I am very new to Chef Server and Chef Chef client. Also, new to Ruby in which Chef was written. I have a problem monitoring the performance of chef server's response time when Chef client is running ...
3
votes
1answer
461 views

omnibus installed chef and rvm issues

I'm trying to figure out one thing and would like someone's else view on this. I installed chef on my Ubuntu server (11.10) via the awesome omnibus install. It worked perfectly fine. I was able to run ...
2
votes
1answer
130 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
2k views

Net::SSH::AuthenticationFailed when using Chef's Knife ssh

Facts: I have a Chef server installed. I have registered a node to this server, and I can see the node in the webUI (This is an existing node, NOT bootstrapped using knife bootstrap When I execute ...
2
votes
1answer
776 views

chef-client “can not find config file”

I have a handful of servers who have not checked into the (in-house open-source) chef server in some time. When running chef-client as root, I get the message WARN: Can not find config file: ...
2
votes
1answer
903 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 ...
2
votes
2answers
248 views

Chef-client kills processes

I use the knife ec2 plugin to bootstrap a new instance (Ubuntu 12.04) and install a software on it. Everything works great but after chef-client ends, some processes of the new software are killed. ...
1
vote
1answer
1k views

How do I remove a package with Chef? [closed]

I am trying to remove packages using a chef. i.e. remove java 1.6 and install java 1.4
1
vote
2answers
2k views

knife bootstrap windows winrm/ssh timeout

I am trying to bootstrap windows server with chef-client. I am able to manually go in and install the Chef omnibus installer. Then I successfully installed the rubygem knife-windows for chef-client ...
1
vote
1answer
217 views

What is the most automated way to deploy a new server being managed by Chef?

We use knife-vsphere to deploy and configure new chef-managed servers in our virtual environments, but don't have any one-step solution for physical servers. Currently the process involves imaging a ...
1
vote
1answer
370 views

How to pass attributes from knife command (ssh)?

Is it possible to attributes from knife command (ssh), e.g. knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
1
vote
1answer
1k views

Trouble setting up chef-client on a vagrant

I've been using opscode chef for remote configuration and I wanted to test my chef scripts locally, so I started working on setting up a vagrant box. But, I can't seem to get my vagrant boxes to ...
1
vote
1answer
40 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]
1
vote
1answer
569 views

Opscode Chef nginx compile from source issue reports successful run but does nothing

I am trying to install nginx from source in Opscode Chef and its bit weird, it runs complaining nothing but does not install it either. This is how my role attributes look like looks like "nginx":{ ...
1
vote
0answers
194 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 ...
1
vote
2answers
850 views

Prevent chef recipe from executing previously executed action?

I have a simple recipe like the following, and currently I am using a local file to indicate if the command has been run or not execute "test" do command "sh test.sh && touch ...
0
votes
2answers
159 views

chef and software packages with long running builds

I'm experimenting with chef and moving my server configuration over to it. One hurdle I'm encountering is how to deal with packages that must be compiled and installed manually (configure, make, make ...
0
votes
3answers
1k views

Setting up Chef Node: Amazon EC2 instance is create but bootstrap fails

I am trying to get going with Chef and the freebie Chef server from Opscode. I got my Chef workstation configured on a local VM running Ubuntu 12.04LTS. I downloaded the chef-repo from GitHub as ...
0
votes
1answer
257 views

unable to upload cookbook from knife to chef-server

I am running open source chef server on ubuntu ec2 instance. I am trying to upload the cookbook from my workstation using knife to chef-server, I am getting following error ...
0
votes
0answers
17 views

Knife search's result is wrong

I have question in knife search. My knife serach put wrong result. I'm typing this. knife search 'name:PR-WAS-C1' -i result is this. 6 items found PR-EU-RelayProxy-A1 PR-RelayProxy-A2 ...
0
votes
2answers
71 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
0answers
167 views

Chef SSL authentication using enterprise CA

I am trying to configure Chef in our environment. My understanding regarding the Chef SSL configuration is as below. While installing chef-client in nodes using knife bootstrap command, ...
0
votes
0answers
183 views

Can multiple self-registered chef Nodes use the same Client identification?

When a freshly imaged machine on my network connects to my chef-server for the first time, it uses validation.pem to connect. Through this process a new Node and Client are created on the server, both ...
0
votes
1answer
456 views

Chef clients time out trying to connect to server

I'm not sure whether the problem is on client or server. All my machines are Ubuntu 12.04 x64. I'm on Digital Ocean, and I have to configure iptables to "survive". Server Story My Chef Server is on ...
0
votes
1answer
513 views

Chef how to run a run list in filtered node

How to run a run list in several nodes? Now I wrote a script loop those severs and run using knife bootstrap. Is there better way to do it? Like how we use "knife ssh 'id:*', can we run a run list in ...
0
votes
1answer
459 views

Pass override attribute via command line for chef-solo

For chef-solo, is it possible to pass the override attributes via command line? Because sometimes the attribute is just adhoc decision and is diffent from host to host, e.g. hostname, we don't want ...
0
votes
1answer
96 views

Storing extra data in .json role/environment files for external (i.e. non-Chef) applications

I’m thinking about converting my roles to JSON syntax and storing some extra data in there for an external, non-chef application (specifically Vagrant). My idea is that if I stick to a convention in ...
-1
votes
2answers
641 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. ...
-1
votes
0answers
14 views

Chef-client --local-mode returning zero-length file

I am switching from chef-solo to chef-client -z (--local-mode) for running chef on my machines because of an issue that I've seen recently with chef-solo in version 12. I have one spot in one of my ...
-3
votes
0answers
10 views

Chef | Node auto registration | CentOS6 [on hold]

How to setup UN attendant setup in Chef where whenever any server come in production enroll the same server automatically in particular environment then roles then recipes. i am able to do Node ...