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]
-1
votes
2answers
205 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
vote
0answers
145 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 ...
2
votes
1answer
89 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' ...
1
vote
1answer
507 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 ...
0
votes
1answer
206 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
117 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
384 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
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 ...
1
vote
2answers
1k 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
194 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 ...
0
votes
1answer
367 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
310 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 ...
1
vote
2answers
450 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
1answer
87 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
vote
1answer
882 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
1answer
502 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":{ ...
2
votes
2answers
209 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
319 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?
3
votes
1answer
167 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 ...
0
votes
0answers
494 views

Variable / Attribute scope within Chef recipes and execution order

I'm trying to get the rvm_passeneger recipe to work, I seem to having problems with the order of execution and variable/attribute scope. ...
3
votes
1answer
401 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 ...
13
votes
2answers
7k 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 ...
0
votes
1answer
974 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 ...
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 ...
0
votes
2answers
145 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 ...
5
votes
3answers
2k 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): ...
2
votes
1answer
657 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: ...