Medya
1
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
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
Medya,
Try changing the keys to symbols. Also, I think "keys" has to be under
ssh_options:
machine_options :transport_options => {
:host => '10.16.4.126',
:username => 'root',
:ssh_options=> {
:keys => ['C:\Users\medya\chef\keys\Intf_proj_keypair']
}
}
Regard,
Christine
On Thu, Apr 9, 2015 at 2:18 PM, Medya medya.gh@gmail.com wrote:
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
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