Skip to content

Instantly share code, notes, and snippets.

View botchagalupe's full-sized avatar

John Willis botchagalupe

View GitHub Profile
@botchagalupe
botchagalupe / report.rb
Created December 15, 2010 00:39 — forked from dje/report.rb
require 'rubygems'
require 'chef'
require 'fog'
require 'google_spreadsheet'
Chef::Config.from_file("~/.chef/knife.rb")
ec2 = Fog::AWS::EC2.new(:aws_access_key_id => ENV["AWS_KEY"],
:aws_secret_access_key => ENV["AWS_SECRET"] )
@botchagalupe
botchagalupe / gist:744057
Created December 16, 2010 21:35
LOPSA-LA Demo

Demo Wordpress Stack

Notes

10.04 LTS Lucid -EBS boot - 32 - ami-a2f405cb supports - m1.small,c1.medium

10.04 LTS Lucid -EBS boot - 64 - ami-b8f405d1 supports - m1.large

10.04 LTS Lucid -EBS boot - 64 - ami-4a0df923 supports - t1.micro

@botchagalupe
botchagalupe / gist:788627
Created January 20, 2011 20:47
Knife Report1

This is an example report running from knife exec

This example uses google spreadsheets to store the results.

You will first need to install the google spreadsheet GEM

$ gem sources -a http://gemcutter.org
$ sudo gem install google-spreadsheet-ruby

More information about this GEM can be found at

@botchagalupe
botchagalupe / gist:796787
Created January 26, 2011 15:02
Rundeck with Chef

Make sure the EC2 instance for the Rundeck server has ports 4440 and 4443

Get the JAR files from github

wget https://github.com/downloads/dtolabs/rundeck/rundeck-launcher-1.1.0.jar --no-check-certificate

Install Java

sudo apt-get install openjdk-6-jre 
@botchagalupe
botchagalupe / gist:801566
Created January 29, 2011 05:32
Hackday Setup

Setting up a hackday

Setup ubuntu pre-built clients for students that don't have a chef working "client" environment.

Create (n) instances for students -- These are prebuillt Chef client instances that have everything except the key

ec2-run-instances ami-5a31c133 --instance-type m1.small --region us-east-1 --key botchagalupe -g default -g wordpress -n 10

Create a list of instances and assign to students

@botchagalupe
botchagalupe / gist:801828
Created January 29, 2011 13:36
Hackday Setup (Student)

The Hack Day Setup and Lab Guide

https://opscode.box.net/shared/gtdi56shjb

The Credentials for the class

User:     ubuntu
Password: opstrain_0150
@botchagalupe
botchagalupe / gist:802516
Created January 30, 2011 04:05
Hack Day NYC Go Project Notes
Application to build and deploy
https://github.com/grahambrooks/bvira
Nodes
ec2-72-44-36-76.compute-1.amazonaws.com <--- Tomcat??
ec2-184-73-9-162.compute-1.amazonaws.com<--- dead
ec2-50-16-60-233.compute-1.amazonaws.com<--- Goserver
# -*- ruby -*-
# Needs following parameters configured in rake.rb:
# DNS_DOMAIN: domain for which to set entries, including trailing dot
# (e.g. "example.com.")
# DNS_ATTRIBUTE: attribute containing hostname to CNAME to, defaults
# to 'fqdn'; for EC2, use "ec2.public_hostname"
# DNS_ENTRIES: hash mapping hostname to node search query,
# e.g. {'buildbot' => 'recipes:buildbot', 'monitoring' =>
# 'roles:monitoring'}
#!/usr/bin/env ruby
require 'rubygems'
require 'chef'
require 'chef/client'
require 'chef/run_context'
Chef::Config[:solo] = true
Chef::Config[:log_level] = :info
Chef::Log.level(:info)
Vagrant::Config.run do |config|
# Use the Opscode box that we downloaded.
config.vm.box = "chef-ubuntu"
# Let's give the box an IP that is accessible by the other nodes we
# will spin up.
config.vm.network "33.33.33.11"
# Forward the Riak HTTP and Protobufs ports so we can access them
# locally.