[chef] cant make chef-provisioning-ssh example to work !


Chronological Thread 
  • From: Medya < >
  • To:
  • Subject: [chef] cant make chef-provisioning-ssh example to work !
  • Date: Thu, 9 Apr 2015 14:18:18 -0500

I try to provision an instance which already exist, using chef-provisioning-ssh's basic example
but I get this error :

[2015-04-08T16:30:01-05:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8890/nodes/Developing-Weblogic-Resource


    ================================================================================
    Error executing action `ready` on resource 'machine[Developing-Weblogic-Resource]'
    ================================================================================

    RuntimeError
    ------------
    Machine Options for Developing-Weblogic-Resource are invalid cannot create machine.
      :transport_options => :host or :ip_address required.
      :transport_options => :username required.
      :transport_options => :host not allowed.
      :transport_options => :username not allowed.
      :transport_options => :keys not allowed.


here is my full recipe:

require 'chef/provisioning/ssh_driver' # for provisioning ssh

with_driver 'ssh'

machine "Developing-Weblogic-Resource" do
  tag "usage:keep"
  recipe "${project.artifactId}::dummy"
  machine_options  :transport_options => {
    'host' => '10.16.4.126',
    'username' => 'root',
    'keys' => ['C:\Users\medya\chef\keys\Intf_proj_keypair']
  }
  ohai_hints ohai_hints
  action [:ready, :setup, :converge]
  converge true
end



Archive powered by MHonArc 2.6.16.

§