Closed mg03 closed 9 years ago
Hello! Any version of Chef that shows up at this site should work with knife-azure: https://www.getchef.com/chef/install.
Now, to get more specific, when you say "version of Chef," do you mean the client or server? Any version of the Chef Server should work, though Chef Server 11 or greater is probably the most mainstream case.
As far as Chef Client, do you mean on the workstation running knife, or on the node you're managing? On the workstation, I would recommend some version of Chef 11 or higher.
On the managed node, any version of Chef Client that works on your target OS (e.g. Ubuntu) will work. Any version of Chef 11 will work on the target system, or Chef 12 for that matter, or even Chef 10. The mainstream case is currently Chef 11, though Chef 12 will soon be out.
I would always recommend using the latest version of any of the software, since those versions will be up to date on security fixes.
Let us know if this doesn't answer your question. If you're seeing problems using knife-azure
, feel free to reply or to post on the Chef mailing lists or IRC (#chef).
HI adamex
In my env , Chef Server, Workstation and Chef-Client are all at version 11.x
I installed the knife-azure gem. I ahve setup the publish settings file in knife.rb
I get successful output with knife azure image list.
I ran the following command and got error:
[chefknife@chefknife .chef]$ knife azure server list --azure-api-host-name 'man
agement.core.windows.net' -VV
INFO: calling get hostedservices synchronously
./opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in initialize': getaddrinfo: No address associated with hostname (SocketError) from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in
open'
from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in block in conn ect' from /opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:55:in
timeout'
from /opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:100:in timeout' from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in
connect'
from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:756:in do_start' from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:745:in
start'
from /opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:1285:in request' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/r estclient/net_http_ext.rb:51:in
request'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a
zure/rest.rb:55:in http_query' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a zure/rest.rb:41:in
query_azure'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a
zure/connection.rb:57:in query_azure' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a zure/host.rb:32:in
load'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a
zure/host.rb:45:in all' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a zure/deploy.rb:31:in
load'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a
zure/deploy.rb:47:in all' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/a zure/role.rb:30:in
all'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-azure-1.3.0/lib/c
hef/knife/azure_server_list.rb:38:in run' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/k nife.rb:493:in
run_with_pretty_exceptions'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/k
nife.rb:174:in run' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/a pplication/knife.rb:139:in
run'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/bin/knife:
25:in <top (required)>' from /usr/bin/knife:23:in
load'
from /usr/bin/knife:23:in `
Am I doing anything wrong here?
@mg03 , did you fix the problem? What OS / version are you on?
I am here wondering if Chef Knife can be installed on a windows machine. AnneTheAgile
@AnneTheAgile yes, you can use knife on Windows. Download Chef-DK or the Windows client from https://downloads.chef.io/. You can install the knife-azure gem into it as well. When using Chef-DK you can run 'chef gem install knife-azure'.
@btm thank you! I will be trying it all out soon I hope.
@AnneTheAgile , is your issue resolved? Can we close this?
@mg03 Its working fine at our side with knife-azure version 1.3.0 and released one.
Hi
I am using the open source version-11 chef server/knife/client all on ubuntu machines. What version of chef will work with the knife-azure plugin?
regards
meher