inception/bin/configure_knife.sh

13 lines
351 B
Bash
Executable File

#!/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 -u chefroot -r ~/chef-repo \
--admin-client-key ~/.chef/webui.pem \
--server-url http://$(hostname -i):4000 \
--validation-key ~/.chef/validation.pem \
--defaults