Skip to content

How to run chef-metal-ssh #7

Description

@cheyang

I was trying to follow https://github.com/double-z/chef-metal-ssh I'm running the code below, it throws the exception: [2015-01-19T06:03:39-06:00] ERROR: machineone had an error: ArgumentError: wrong number of arguments (2 for 0)

require 'chef_metal_ssh'

name = "one"

with_ssh_cluster("~/metal_ssh")

machine name do
action [:ready, :converge]
machine_options 'ip_address' => '10.62.56.209',
'ssh_options' => {
'user' => 'root',
'keys' => ['/home/chefuser/test.rsa']
}
files '/remote/path.txt' => { :content => 'foo' }
end

machine_execute name do
command "pwd" # this uses new_daemon_key to register with halo
end

I want to know what's wrong of this code. And I don't understand for with_ssh_cluster("/metal_ssh") what content should be in "/metal_ssh"? thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions