Here are a few steps and you need some information to better answer your question.
Assumptions
- Your nodes are Linux nodes, and you are still running the Chef version 11.
- Your new chef server has all the cookbooks, roles, bag and environment data transferred from your old chef server.
Steps
a) First, make sure you take an inventory of the chefβs current setup so that you know that all of your node names and which startup lists apply to each node.
b) SSH in the node you want to move and remove /etc/chef/client.pem
c) Now log in to your new Chef server and use the private key in the / etc / chef / chef -validator.pem file to create /etc/chef/validation.pem on the client machine.
d) Edit /etc/client.rb and change chef_server_url to any of your new chef servers.
Now run chef-client on the client machine. This will create a new client identifier from the new server, and you will see that the name of your client appears on your chef's server in the list of clients of your new Chef server.
But you are not a weed yet because: i) your client list will be empty and ii) this client has not yet appeared in the list / nodes of your new server.
d) Therefore you need to use
knife node create NODE_NAME
from your workstation to name node and register it in the new chef server database.
Then use
knife node run_list add NODE_NAME RUN_LIST_ITEM(s)
to re-create a list for each window.
Then use
knife node environment_set NODE_NAME ENVIRONMENT_NAME
to set the environment for each node.
Now run the chef-client on node, and you will see node in / nodes with the start lists and the environments you assigned. You should also see the node in the status tab with a very recent time of the last registration.
Yes. You will need to do this 300 times. Vl.