include_recipe "apt"
apt_repository "apt.opscode.com" do
uri "http://apt.opscode.com"
components ["natty-0.10 main"]
key "http://apt.opscode.com/[email protected]"
action :add
end
execute "preseed chef-server" 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/[email protected]"
action :add
end
execute "preseed chef-server" do
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
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
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
| # | |
| # 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" |
| 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. |
| #!/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) |
| # -*- 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'} |
| 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 |