inception/bin/configure_knife.sh

10 lines
302 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 --validation-key ~/.chef/validation.pem --defaults