Last active
December 21, 2015 00:19
-
-
Save priit/6219247 to your computer and use it in GitHub Desktop.
Chef Bootstrap Debian 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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