diff --git a/bin/configure_knife.sh b/bin/configure_knife.sh index 8abd9b1..9e48994 100755 --- a/bin/configure_knife.sh +++ b/bin/configure_knife.sh @@ -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