The Hack Day Setup and Lab Guide
https://opscode.box.net/shared/gtdi56shjb
The Credentials for the class
User: ubuntu
Password: opstrain_0150
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" |
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
http://www.phenona.com/blog/using-lxc-linux-containers-in-amazon-ec2/
Use ami-1aad5273
sudo -i
apt-get update && apt-get install lxc debootstrap bridge-utils dnsmasq
mkdir /cgroup mount -t cgroup none /cgroup
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
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