From 988c86f53cb88e81015ce2c20f559145ed762b66 Mon Sep 17 00:00:00 2001 From: jt Date: Sat, 18 Aug 2012 16:35:10 -0700 Subject: [PATCH] Rackspace's reverse is failing sometimes, and it throws this error message " ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known" Changed to code to use IP address for bootstrapping --- lib/chef/knife/rackspace_server_create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/knife/rackspace_server_create.rb b/lib/chef/knife/rackspace_server_create.rb index 6c1be49..e8fc76b 100644 --- a/lib/chef/knife/rackspace_server_create.rb +++ b/lib/chef/knife/rackspace_server_create.rb @@ -197,7 +197,7 @@ def run def bootstrap_for_node(server) bootstrap = Chef::Knife::Bootstrap.new - bootstrap.name_args = [public_dns_name(server)] + bootstrap.name_args = server.addresses["public"][0] bootstrap.config[:run_list] = config[:run_list] bootstrap.config[:first_boot_attributes] = config[:first_boot_attributes] bootstrap.config[:ssh_user] = config[:ssh_user] || "root"