popularity question answers views user  
0
Knife SSH?

Does anyone have any tips on how to get the ‘knife ssh’ command to work? Right now I just want to use knife from my workstation to temporarily ssh into my target node, run a command (sudo chef-client) and then be done with it….but for some reason, I get the error back ‘no nodes returned fro search!’

This is the command I’ve been running:

knife ssh name:NODENAME -x USERNAME -P PASSWORD 'sudo chef-client'

That should work, right?

more →
1 69  
0
Push the cookbooks for "nodes" via WEBUi

Hi,

Im asking myself how it feels to manage 200 nodes with the CHef-Webui! The answer was not so good as it should be because you havn’t a chance to perform a “chef-client” action on node without logging in into this node.

So is there a way to do that with the chef-WebUi?! Ok we don’t have 200 nodes but approx 30 :)

Regards

more →
1 529  
0
nginx cookbook compile from source failed at runit_service[nginx] use chef-solo on debian 6

Hi. I testing my cookbooks and run list on vagrant ubuntu 12.04 everything goes fine. But when I use capinstrano deploy cookbooks to debian 6 server run chef-solo things failed. I don’t know why. Someone use debian 6 have some problem or any suggestion? Below is some error logs.

This is chef-stacktrace.out https://gist.github.com/v1nc3ntlaw/30d554815a664a9ff3d0 This is chef-solo run log. https://gist.github.com/v1nc3ntlaw/e7a1cd732cc2f9f11402

more →
0 126  
0
knife and libfog-ruby1.8 packages from opscode repo don't work together

Hi, guys, I installed from opscode repo knife, and libfog-ruby1.8, and tried to use knife’s ec2 commands, which complains about “uninitialized constant Fog::AWS::Compute”, Google told me that this is due to API change to Fog. As I understand it now, chef moved on to use newer API from fog (0.5 or 0.6), but the libfog-ruby1.8 packages in the repo is still version 0.1.0-2, and it just doesn’t work with the chef packages from the same repo? Have anyone had similar problems?

Shuang

more →
2 900  
0
How to download private key i.e., username.pem file from opscode site

Hi,

I recently have undergone for training for Chef. Well I have a basic /small doubt how to download the private user key i.e., username.pem file from opscode site. I am able to download the org-validator key from the site although after creating my user account. Can anybody help me with a quick response as i am configuring chef to my local machine by downloading chef-client installer.

more →
1 59  
0
How do I remove sub-recipes from a reciepe

Let me explain:
apache2 includes a bunch of sub-recipes by default: apache2::mod_status for example.

For our production machines we don’t want to include this recipe (mod_status). Is there a way to do turn it off in our frontend-server role ?

Would I have to essentially recreate the apache cookbook as a site-cookbook and do it there? I would like to avoid this as far as possible so that I don’t have to keep syncing the vendor apache2 recipe with our own.

Or is there a way to inherit from a recipe and then remove some included_recipes ? Thanks,

more →
1 469  
0
Is that possible to run chef-client on the server by keeping the node as a reference?

Hi,

Every time I’m running chef-client command on the node(client) for the node configuration. From the chef-server, we use knife ec2 plugin to create a new instance on amazon ec2. Is there any possibilities or plugins to run the command “chef-client” on the server by using the required node as a reference? Which means it should reflect like we are running the command “chef-client” on the node.

more →
0 61  
0
option in knife ec2 for specifying block-device-mapping ?

I would like to specify the block device mapping (—block-device-mapping in the ec2-run-instances command) for ec2 machines in the “knife ec2 create command”. I don’t see an option for this in the help.
If this is not currently implemented can I add it to your feature request list :)?

more →
1 1.3k  
0
Ruby Versions for Chef

Does Chef Server & Chef nodes need to run same ruby version?

I have Chef server on ruby 1.8.7 and my nodes are on 1.9.3 and am having various weird issues getting the require ‘mysql’ to work as expected.

more →
0 42  
0
2 cookbooks with the same name?

If I wanted to contribute a cookbook to manage X (let’s say X=nginx) but one already exists on the community site, how could I name it to ensure it’s unique? From the URL structure of the community site, I’d guess there can only be one X cookbook. Something like username-nginx or some strange convention such as nginx-alt? Thoughts?

more →
1 596