Skip to content

Instantly share code, notes, and snippets.

View botchagalupe's full-sized avatar

John Willis botchagalupe

View GitHub Profile
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
#!/bin/sh
# Must have boot2docker installed if using Mac OS X
installMachineMac() {
sudo wget --no-check-certificate -O /usr/local/bin/docker-machine http://docker-machine-builds.evanhazlett.com/latest/docker-machine_darwin_amd64
sudo chmod +x /usr/local/bin/docker-machine
}
installDockerBinMac(){
sudo wget --no-check-certificate -O /usr/local/bin/docker https://get.docker.com/builds/Darwin/x86_64/docker-latest
@botchagalupe
botchagalupe / gist:3999b740bb9235ab7722
Last active August 29, 2015 14:23
Getting Started with LIbnetwork

Getting Started with Libnetwork

Install

# Install Docker and Consul on both hosts
 
sudo apt-get install -y unzip wget curl

wget -qO- https://experimental.docker.com/ | sh
@botchagalupe
botchagalupe / gist:666110
Created November 7, 2010 12:54
General Chef Notes

Chef Demo One

Prep Work

knife cookbook site vendor -d ntp

Use chef-solo to launch ntp...

Chef Demo Two

@botchagalupe
botchagalupe / gist:668836
Created November 9, 2010 08:00
Chef FUD Lab 5

Chef Fundamentals Labs

Exercise 1 - Download and Modify Haproxy Cookbook

a. Search for a copy of the haproxy cookbook by issuing the following commands.

 knife cookbook site search haproxy

 knife cookbook site show haproxy
@botchagalupe
botchagalupe / gist:669074
Created November 9, 2010 13:36
Chef FUD Lab 4 (Updated)

Chef Fundamentals Labs

Do first#

knife cookbook site vendor -d apache2

Lab 4 Create a Web Server cookbook

Exercise 1 - Create a new cookbook called webserver and launch new web servers on EC2

@botchagalupe
botchagalupe / gist:670599
Created November 10, 2010 09:24
Chef FUD Labs (Original)

Chef Fundamentals Labs

Lab 4 Create a Web Server cookbook

Exercise 1 - Create a new cookbook called webserver and launch new web servers on EC2

a. Create a new cookbook called webserver

Use knife cookbook --help to figure out how to create new cookbook. Also refer to the student guide for examples

@botchagalupe
botchagalupe / gist:675444
Created November 13, 2010 16:07
Demonstration LAMP Stack Simple

Setup a Three Server HAPROXY/APACHE2 Setup

Demo Part One (Launch an Apache Server)

Start the demo by launching three EC2 instances then tell the audience that this will take about 3 minutes. Also explain that we not only starting the instances we are also bootstrapping it with the Chef client (Easy Peasy)...

./setupDemo.sh 

Sample Script