Bootstrap chef client with IP-based url
This commit is contained in:
parent
763f94f622
commit
835c802a3a
|
@ -5,5 +5,8 @@ mkdir -p ~/.chef
|
||||||
sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef
|
sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef
|
||||||
sudo chown -R $USER ~/.chef
|
sudo chown -R $USER ~/.chef
|
||||||
|
|
||||||
knife configure -i -u chefroot -r ~/chef-repo --admin-client-key \
|
knife configure -i -u chefroot -r ~/chef-repo \
|
||||||
~/.chef/webui.pem --validation-key ~/.chef/validation.pem --defaults
|
--admin-client-key ~/.chef/webui.pem \
|
||||||
|
--server-url http://$(hostname -i):4000 \
|
||||||
|
--validation-key ~/.chef/validation.pem \
|
||||||
|
--defaults
|
||||||
|
|
Loading…
Reference in New Issue