chef install policies/vanilla.rb
then you can use chef export to export the whole cookbook and policy (for dependency resolution), configured and ready to drop onto a server
#export policy to the dirctory above current directory, ran from within the cookbook 'minecraft-server'
chef export policies/minecraft-server.rb -a ../
#send it off
scp -r ../minecraft-server-SOME_LONG_ASS_HASH_WILL_BE_HERE_AFTER_YOU_BUILD_IT.tgz [email protected]:/home/bryan/.
curl -L https://omnitruck.chef.io/install.sh | sudo bash
#make sure it made it on there
chef-client --version
then run chef zero on the target after unpacking the tar
#build them a home
mkdir -p ~/cookbooks/minecraft-server
#unpack that slut
tar -xvf minecraft-server-SOME_LONG_ASS_HASH_WILL_BE_HERE_AFTER_YOU_BUILD_IT.tgz -C cookbooks/minecraft-server
#get inside
cd cookbooks/minecraft-server
#do your thing ๐ค
#you need root
sudo chef-client -z
minecraft should be running