ryan412
activity item
Nov 07
Following Question
How to pass attributes from knife command via ssh?

I am wondering if it is possible to pass attributes from knife command (via ssh), e.g. https://github.com/opscode/cookbooks/tree/master/java, I want to pass the node['java']['jdk'] via the command line below. Possible?

knife ssh ‘role:app-server’ ‘sudo chef-client’

more →
Nov 07
New Question
How to pass attributes from knife command via ssh?

I am wondering if it is possible to pass attributes from knife command (via ssh), e.g. https://github.com/opscode/cookbooks/tree/master/java, I want to pass the node['java']['jdk'] via the command line below. Possible?

knife ssh ‘role:app-server’ ‘sudo chef-client’

more →
2012
Following Question
Knife ssh not work when a node is not bootstrapped

I have a node which is registered to chef server when its first time run the chef-client, so I can see the node in the web interface.

But I can’t run knife ssh to it, return error

“Net::SSH::AuthenticationFailed”

So, in this case, what is the best way to copy the ssh key?

more →
2012
New Question
Knife ssh not work when a node is not bootstrapped

I have a node which is registered to chef server when its first time run the chef-client, so I can see the node in the web interface.

But I can’t run knife ssh to it, return error

“Net::SSH::AuthenticationFailed”

So, in this case, what is the best way to copy the ssh key?

more →
2012
Following Question
Where should I store the Chef Repository?

The documentation ask you to do a git clone,

e.g. http://wiki.opscode.com/display/chef/Chef+Repository http://wiki.opscode.com/display/chef/Working+with+Git+and+Cookbooks

But it didn’t tell you where you should clone the Chef Repository to, are there any standard location for storing the Repository? /var/chef?

more →
2012
New Question
Where should I store the Chef Repository?

The documentation ask you to do a git clone,

e.g. http://wiki.opscode.com/display/chef/Chef+Repository http://wiki.opscode.com/display/chef/Working+with+Git+and+Cookbooks

But it didn’t tell you where you should clone the Chef Repository to, are there any standard location for storing the Repository? /var/chef?

more →
2012
Following Question
Perform group command like fabric

I am from fabric and I know how to perform basic system setup using chef-solo now.

What are the equivalent way to perform mass command to nodes like fabric, e.g. perform “apt-get update” on all nodes and make sure they have all executed?

Is it a must to use chef server for this action?

Thanks.

more →
2012
New Question
Perform group command like fabric

I am from fabric and I know how to perform basic system setup using chef-solo now.

What are the equivalent way to perform mass command to nodes like fabric, e.g. perform “apt-get update” on all nodes and make sure they have all executed?

Is it a must to use chef server for this action?

Thanks.

more →
2012
Following Question
Correct way to handle cookbooks depenency?

http://stackoverflow.com/questions/8027310/chef-error-loaderror-no-such-file-to-load-win32-open3

Currently if we specified a cookbook path which contains all the cookbooks, even if we are NOT using it, it still cause you an error. So you need to put the cookbooks you needed ONLY in the folder.

But the problem appear when some cookbooks depends on other (e.g. wordpress depends on php), so we need to copy the cookbooks one by one manually..

Are there better way to do it?

more →
2012
New Question
Correct way to handle cookbooks depenency?

http://stackoverflow.com/questions/8027310/chef-error-loaderror-no-such-file-to-load-win32-open3

Currently if we specified a cookbook path which contains all the cookbooks, even if we are NOT using it, it still cause you an error. So you need to put the cookbooks you needed ONLY in the folder.

But the problem appear when some cookbooks depends on other (e.g. wordpress depends on php), so we need to copy the cookbooks one by one manually..

Are there better way to do it?

more →