Bootstrap chef client with IP-based url

This commit is contained in:
Yun Mao 2013-05-13 19:35:59 -04:00
parent 763f94f622
commit 835c802a3a
1 changed files with 5 additions and 2 deletions

View File

@ -5,5 +5,8 @@ mkdir -p ~/.chef
sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef
sudo chown -R $USER ~/.chef
knife configure -i -u chefroot -r ~/chef-repo --admin-client-key \
~/.chef/webui.pem --validation-key ~/.chef/validation.pem --defaults
knife configure -i -u chefroot -r ~/chef-repo \
--admin-client-key ~/.chef/webui.pem \
--server-url http://$(hostname -i):4000 \
--validation-key ~/.chef/validation.pem \
--defaults