Skip to content

Instantly share code, notes, and snippets.

@priit
Last active December 21, 2015 00:19
Show Gist options
  • Save priit/6219247 to your computer and use it in GitHub Desktop.
Save priit/6219247 to your computer and use it in GitHub Desktop.
Chef Bootstrap Debian 7
#!/usr/bin/env bash
# Debian Boostrap, run as:
# sudo apt-get install -y curl & curl -L https://gist.github.com/priit/6219247/raw/gistfile1.txt | bash
sudo apt-get -y update
sudo apt-get -y install chef rsync
# Example way of using Chef-Solo:
#
# rsync -r ~/gitlab/chef SERVER_NAME: | ssh SERVER_NAME 'sudo chef-solo -c /home/admin/chef/SERVER_NAME.rb'
#
# I made alias for zshrc:
# alias chefNAME="rsync -r ~/gitlab/chef SERVER_NAMe: | ssh SERVER_NAME 'sudo chef-solo -c /home/admin/chef/SERVER_NAME.rb'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment