This file contains hidden or 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 | |
# From Creating a Vagrant Box | |
echo "export PS1='laravel:\w\$ '" >> .bashrc | |
ln -s /vagrant/projects | |
cat << EOF | sudo tee -a /etc/motd.tail | |
*************************************** | |
Welcome to raring32-vanilla Vagrant Box |
This file contains hidden or 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
#!/bin/bash | |
echo 'Starting Provision: web'$1 | |
sudo apt-get update | |
sudo apt-get install -y nginx | |
echo "<h1>Machine: web"$1"</h1>" >> /usr/share/nginx/html/index.html | |
echo 'Provision web'$1 'complete' |
This file contains hidden or 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
#!/bin/bash | |
echo 'Starting Provision: lb1' | |
sudo apt-get update | |
sudo apt-get install -y nginx | |
sudo service nginx stop | |
sudo rm -rf /etc/nginx/sites-enabled/default | |
sudo touch /etc/nginx/sites-enabled/default | |
echo "upstream testapp { | |
server 10.0.0.11; |