Skip to content

Instantly share code, notes, and snippets.

View botchagalupe's full-sized avatar

John Willis botchagalupe

View GitHub Profile
@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

@botchagalupe
botchagalupe / gist:716236
Created November 26, 2010 03:17
TSE Training Setup (Instructor Notes)

Class Setup on Ubuntu

Setup a Instructor Node on Ubuntu

ami-4a0df923 - Ubuntu 10.04 - 64 Bit - EBS Instance (t1.micro) ami-480df921 - Ubuntu 10.04 - 32 Bit - EBS Instance (m1.small)

ec2-run-instances ami-480df921 --instance-type m1.small --region us-east-1 --key botchagalupe -g default -g wordpress

iinst=knife ec2 server list | grep running | grep wordpress | awk '{print $2}'

@botchagalupe
botchagalupe / gist:721028
Created November 30, 2010 02:21
TSE Training Setup - Ubuntu (Student Notes)

Setup a Student Chef Client on Ubuntu

ssh ubuntu@<IP Supplied by the Instructor>  (password opstrain_0150)

mkdir -p ~/chef-repo/.chef

From your Client box copy your Key and config files

cp USERNAME.pem ~/chef-repo/.chef

cp ORGANIZATION-validator.pem ~/chef-repo/.chef

@botchagalupe
botchagalupe / gist:722604
Created November 30, 2010 23:08
Wordpress Demo

Setup a Single Server Wordpress Demo

Demo Part One (Download the Wordpress Cookbook)

knife cookbook site vendor wordpress -d

Demonstration the different parts of the cookbook.

metadata.rb - Show the dependencies and explain how the -d worked.

@botchagalupe
botchagalupe / gist:729636
Created December 6, 2010 00:23
TSE Training Setup MAC (Student Notes)

Mac users:

Install Xcode on your workstation

If you haven't already, install Xcode using your OS X install disc or by downloading it from here.

Install RubyGems 1.3.5+ on your workstation

First, check to see if your operating system already has RubyGems 1.3.5+ installed by running the following:

@botchagalupe
botchagalupe / gist:737501
Created December 11, 2010 17:51
Setup a Three Server HAPROXY/APACHE2 Setup (New)

Setup a Three Server HAPROXY/APACHE2 Setup

Ubuntu Image used in class

image: ami-2e7e8747

Notes:  For Chef Clinet install use "sudo gem install chef --no-ri --no-rdoc" 

        Instead of knife ec2 .. use