문제

I have been experimenting with open source chef server. I configured a node on my server which had ip address 10.114.7.41. Now when I restarted the node machine and now the ip address of the machine has changed to 10.114.7.45. But the chef server still has the ip address of this node as the previous one which can be checked by:

knife search 'node:name'

How can I rectify this from my workstation/chef-server? I am not able to 'knife ssh' the node machine. Thanks!

도움이 되었습니까?

해결책

If you can access the node and re-run chef-client, it should pick up the new IP address and change it for you. Ohai runs at the beginning of each chef-client run and collects this data and updates the chef server.

다른 팁

So the best solution is -m with the knife invocation?

knife ssh -m host.dhcp.net -- chef-client 

.. always seemed a little gauche.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top