[chef] changing hostname


Chronological Thread 
  • From: Joshua Miller < >
  • To:
  • Subject: [chef] changing hostname
  • Date: Mon, 15 Mar 2010 22:26:24 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=NAxbejeP7KxIohTnTrkSvN+Kfv85LX4QRqm/Hzl+T4N0pZFK7aZrt7XMtg5vWJguT6 b35HbalgLpWcWJcpgFY+2hkoYcB4Eh61l12cn/icXY4xjZIorCz2+fE/1dYTeTlGuvGo 2+twVHWSFDS2qwOoH+4X33cQ+dc1BpM+OGqfs=

Hello,

Guys I am trying to change my host name on a box but now I get

:~#
 chef-client 
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 401 "Unauthorized" 
(Net::HTTPServerException)
        from /usr/lib/ruby/1.8/chef/rest.rb:233:in `run_request'
        from /usr/lib/ruby/1.8/chef/rest.rb:95:in `post_rest'
        from /usr/lib/ruby/1.8/chef/client.rb:243:in `authenticate'
        from /usr/lib/ruby/1.8/chef/client.rb:79:in `run'
        from /usr/lib/ruby/1.8/chef/application/client.rb:186:in 
`run_application'
        from /usr/lib/ruby/1.8/chef/application/client.rb:178:in `loop'
        from /usr/lib/ruby/1.8/chef/application/client.rb:178:in 
`run_application'
        from /usr/lib/ruby/1.8/chef/application.rb:57:in `run'
        from /usr/bin/chef-client:25
:~#
 
:~#
 chef-client -v
Chef: 0.7.14
:~#
 

for some reason I though nodes used another system to track nodes once they 
are registered but it seems I am wrong.  Is there a suggested way to change a 
hostname?

Thank you,

Joshua








Archive powered by MHonArc 2.6.16.

§