Skip to content

Commit

Permalink
Replacing submodule mess with Berkshelf-based cookbook management
Browse files Browse the repository at this point in the history
  • Loading branch information
temujin9 committed Nov 13, 2012
1 parent 90a334e commit 9de1d58
Show file tree
Hide file tree
Showing 150 changed files with 684 additions and 183 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ knife/checksums/*
knife/plugins

.chef
vendor/ironfan-enterprise
vagrants/*
.rbenv-version
Gemfile.lock
Berksfile.lock
cookbooks/*
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "vendor/ironfan-pantry"]
path = vendor/ironfan-pantry
url = https://github.com/infochimps-labs/ironfan-pantry
[submodule "vendor/opscode/cookbooks"]
path = vendor/opscode/cookbooks
url = https://github.com/infochimps-labs/opscode_cookbooks
[submodule "notes"]
path = notes
url = https://github.com/infochimps-labs/ironfan.wiki.git
99 changes: 99 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
require './config/Berksfile.conf'
require './config/Berksfile.inc'

opscode_cookbook 'ant'
opscode_cookbook 'apache2'
opscode_cookbook 'apt'
opscode_cookbook 'aws'
opscode_cookbook 'bluepill'
opscode_cookbook 'boost'
opscode_cookbook 'build-essential'
pantry_cookbook 'cassandra'
opscode_cookbook 'chef-client'
opscode_cookbook 'chef_gem'
opscode_cookbook 'chef-server'
pantry_cookbook 'cloud_utils'
opscode_cookbook 'couchdb'
opscode_cookbook 'cron'
enterprise_cookbook 'cube'
opscode_cookbook 'daemontools'
enterprise_cookbook 'dashpot'
opscode_cookbook 'database'
opscode_cookbook 'dmg'
pantry_cookbook 'elasticsearch'
opscode_cookbook 'emacs'
opscode_cookbook 'erlang'
pantry_cookbook 'firewall'
pantry_cookbook 'flume'
pantry_cookbook 'ganglia'
opscode_cookbook 'gecode'
opscode_cookbook 'git'
pantry_cookbook 'graphite'
pantry_cookbook 'hadoop_cluster'
pantry_cookbook 'hbase'
pantry_cookbook 'hive'
pantry_cookbook 'homebrew'
pantry_cookbook 'install_from'
opscode_cookbook 'iptables'
pantry_cookbook 'iron_cuke'
enterprise_cookbook 'ironfan_api'
pantry_cookbook 'ironfan-ci'
opscode_cookbook 'java'
pantry_cookbook 'jenkins'
opscode_cookbook 'jpackage'
pantry_cookbook 'jruby'
enterprise_cookbook 'kafka'
enterprise_cookbook 'log_integration'
opscode_cookbook 'logrotate'
opscode_cookbook 'maven'
pantry_cookbook 'minidash'
pantry_cookbook 'mongodb'
pantry_cookbook 'motd'
opscode_cookbook 'mysql'
pantry_cookbook 'nfs'
opscode_cookbook 'nginx'
pantry_cookbook 'nodejs'
opscode_cookbook 'ntp'
opscode_cookbook 'openssh'
opscode_cookbook 'openssl'
pantry_cookbook 'package_set'
pantry_cookbook 'papertrail'
enterprise_cookbook 'phantomjs'
pantry_cookbook 'pig'
opscode_cookbook 'postgresql'
opscode_cookbook 'python'
opscode_cookbook 'rabbitmq'
pantry_cookbook 'redis'
pantry_cookbook 'resque'
pantry_cookbook 'route53'
pantry_cookbook 'rstats'
opscode_cookbook 'rsyslog'
enterprise_cookbook 'rundeck'
opscode_cookbook 'runit'
pantry_cookbook 'rvm'
pantry_cookbook 'silverware'
pantry_cookbook 'snappy'
pantry_cookbook 'statsd'
enterprise_cookbook 'storm'
pantry_cookbook 'strongswan'
enterprise_cookbook 'sudo'
opscode_cookbook 'thrift'
pantry_cookbook 'tuning'
opscode_cookbook 'ubuntu'
opscode_cookbook 'ucspi-tcp'
opscode_cookbook 'ufw'
opscode_cookbook 'unicorn'
enterprise_cookbook 'users'
enterprise_cookbook 'vayacondios'
pantry_cookbook 'volumes'
pantry_cookbook 'volumes_ebs'
opscode_cookbook 'xfs'
opscode_cookbook 'xml'
enterprise_cookbook 'xvfb'
opscode_cookbook 'yum'
pantry_cookbook 'zabbix'
enterprise_cookbook 'zabbix_integration'
pantry_cookbook 'zeromq'
opscode_cookbook 'zlib'
pantry_cookbook 'zookeeper'
opscode_cookbook 'zsh'
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ source "http://rubygems.org"

gem 'chef', ">= 0.10.8"
gem 'ironfan', "~> 4.2"
gem 'berkshelf', :git => "git://github.com/temujin9/berkshelf",
:branch => "one_clone_path"

# Everything in the world is being a stupid dick about JSON versions. Pin it to
# the one that doesn't seem to angrify everyone.
Expand Down
10 changes: 9 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ Dir[File.join('tasks', '*.rake')].sort.each{|f| load(f) }

load 'chef/tasks/chef_repo.rake'

desc "Install berkshelf cookbooks locally"
task :berkshelf do |t, args|
system("bundle exec berks install --path cookbooks")
end

desc "Install berkshelf cookbooks and sync with Chef server"
task :berkshelf_install => [ :berkshelf, :install ]

desc "Bundle a single cookbook for distribution"
task :bundle_cookbook => [ :metadata ]
task :bundle_cookbook, :cookbook do |t, args|
Expand Down Expand Up @@ -115,7 +123,7 @@ end
# RSpec::Core::RakeTask.new(:spec) do |spec|
# spec.pattern = FileList['spec/**/*_spec.rb']
# end
#
#
# RSpec::Core::RakeTask.new(:rcov) do |spec|
# spec.pattern = 'spec/**/*_spec.rb'
# spec.rcov = true
Expand Down
2 changes: 2 additions & 0 deletions config/Berksfile.conf.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
USE_LOCAL = false
LOCAL_PATH = "vendor"
30 changes: 30 additions & 0 deletions config/Berksfile.inc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
USE_LOCAL = false if USE_LOCAL.nil?
LOCAL_PATH = "vendor" if LOCAL_PATH.nil?
OPSCODE_REPO = 'infochimps-labs/opscode_cookbooks' if OPSCODE_REPO.nil?
PANTRY_REPO = 'infochimps-labs/ironfan-pantry' if PANTRY_REPO.nil?
ENTERPRISE_REPO = 'infochimps/ironfan-enterprise' if ENTERPRISE_REPO.nil?

def github_cookbook(name, repo, rel)
if USE_LOCAL
r_name = repo.split('/')[1]
cookbook name, path: "#{LOCAL_PATH}/#{r_name}/#{rel}"
else
cookbook name, github: repo, protocol: 'ssh', rel: rel
end
end

def opscode_cookbook(name)
github_cookbook name, OPSCODE_REPO, name
end

def pantry_cookbook(name)
github_cookbook name, PANTRY_REPO, ('cookbooks/' + name)
end

def enterprise_cookbook(name)
github_cookbook name, ENTERPRISE_REPO, ('cookbooks/' + name)
end

def org_cookbook(name)
cookbook name, path: "org_cookbooks"
end
34 changes: 0 additions & 34 deletions cookbooks/README.md

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/ant

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/apache2

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/apt

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/aws

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/bluepill

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/boost

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/build-essential

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/cassandra

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/chef-client

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/chef-server

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/chef_gem

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/cloud_utils

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/couchdb

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/cron

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/daemontools

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/database

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/dmg

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/elasticsearch

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/emacs

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/erlang

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/firewall

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/flume

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/ganglia

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/gecode

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/git

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/graphite

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/hadoop_cluster

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/hbase

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/hive

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/homebrew

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/install_from

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/iptables

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/iron_cuke

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/ironfan-ci

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/java

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/jenkins

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/jpackage

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/jruby

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/maven

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/minidash

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/mongodb

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/motd

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/mysql

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/nfs

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/nginx

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/nodejs

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/ntp

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/openssh

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/openssl

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/package_set

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/papertrail

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/pig

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/postgresql

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/python

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/rabbitmq

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/redis

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/resque

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/route53

This file was deleted.

Loading

0 comments on commit 9de1d58

Please sign in to comment.