Skip to content

Instantly share code, notes, and snippets.

View botchagalupe's full-sized avatar

John Willis botchagalupe

View GitHub Profile
@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
# -*- 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.
#
# Cookbook Name:: rundeck
# Recipe:: default
#
# Copyright 2011, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
include_recipe "java"
include_recipe "chefdeck"
#
# Cookbook Name:: rundeck
# Recipe:: default
#
# Copyright 2011, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
include_recipe "java"
include_recipe "chefdeck"
@botchagalupe
botchagalupe / gist:1006355
Created June 3, 2011 13:38
Rundeck Demo Stup

To start chef-deck

sudo -b chef-rundeck -c /etc/chef/client.rb -u rundeck  -w https://manage.opscode.com/

To setup AWSDeck

sudo cp -r * /usr/lib/cgi-bin

First install the Workbench instance

@botchagalupe
botchagalupe / gist:1045259
Created June 24, 2011 17:33
Jenkins in two primatives
include_recipe "apt"

apt_repository "jenkins" do
  uri "http://pkg.jenkins-ci.org/debian"
  components ["binary/"]
  key "http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key"
  action :add
end

package "jenkins" do

@botchagalupe
botchagalupe / gist:1052428
Created June 28, 2011 22:38
Chef-Server Install Chef Recipe
include_recipe "apt"

apt_repository "apt.opscode.com" do
  uri "http://apt.opscode.com"
  components ["natty-0.10 main"]
  key "http://apt.opscode.com/packages@opscode.com.gpg.key"
  action :add
end

execute "preseed chef-server" do