Jul 9, 2013

[memo] How to add many nodes to Chef Server

I created my node.json file with jackson. And I need to add 100 over nodes to Chef server.
I uploaded to Chef server's tmp directory my nodes files and ran the following script.
#!/bin/bash
for i in /tmp/*
do
knife node from file $i
done
view raw noderegister.sh hosted with ❤ by GitHub


It is simple!

No comments: