Chef-server to chef client


#1

I saw a knife ssh command which will execute the chef-client based on the role.

knife ssh “role:webserver” “sudo chef-client”

Is there anyway can i run the node with run list from the chef server


#2

Something along these lines is probably what you’re looking for.

knife ssh “name:test-box” “sudo chef-client” -x username -a
cloud.public_hostname

On Thu, Jul 28, 2011 at 11:37 AM, mani@moofwd.com wrote:

I saw a knife ssh command which will execute the chef-client based on the
role.

knife ssh “role:webserver” “sudo chef-client”

Is there anyway can i run the node with run list from the chef server


#3

name:test-box is the name of the node?

On Thu, Jul 28, 2011 at 2:45 PM, Kevin Nuckolls kevin.nuckolls@gmail.comwrote:

Something along these lines is probably what you’re looking for.

knife ssh “name:test-box” “sudo chef-client” -x username -a
cloud.public_hostname

On Thu, Jul 28, 2011 at 11:37 AM, mani@moofwd.com wrote:

I saw a knife ssh command which will execute the chef-client based on the
role.

knife ssh “role:webserver” “sudo chef-client”

Is there anyway can i run the node with run list from the chef server


Thanks & Regards

M.


#4

“test-box” would be the name of the node. Knife is performing a search to
find the node with that name. Then it logs into that machine with the
cloud.public_hostname attribute as the denoted username to run the specified
command.

On Thu, Jul 28, 2011 at 2:06 PM, Mani Govindarajulu mani@moofwd.com wrote:

name:test-box is the name of the node?

On Thu, Jul 28, 2011 at 2:45 PM, Kevin Nuckolls kevin.nuckolls@gmail.comwrote:

Something along these lines is probably what you’re looking for.

knife ssh “name:test-box” “sudo chef-client” -x username -a
cloud.public_hostname

On Thu, Jul 28, 2011 at 11:37 AM, mani@moofwd.com wrote:

I saw a knife ssh command which will execute the chef-client based on the
role.

knife ssh “role:webserver” “sudo chef-client”

Is there anyway can i run the node with run list from the chef server


Thanks & Regards

M.