Add script to configure knife

This commit is contained in:
Yun Mao 2013-05-07 21:46:02 -04:00
parent 9dbf777413
commit e7b23b9438
1 changed files with 9 additions and 0 deletions

9
bin/configure_knife.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# install configure knife on the chef server
mkdir -p ~/.chef
sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef
sudo chown -R $USER ~/.chef
knife configure -i -r ~/chef-repo --admin-client-key ~/.chef/webui.pem --validation-key ~/.chef/validation.pem --defaults