Skip to content

Commit

Permalink
Berkshelf support
Browse files Browse the repository at this point in the history
  • Loading branch information
promisedlandt committed Dec 28, 2012
1 parent 38f157d commit d78631c
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
/cookbooks
6 changes: 6 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
site :opscode

cookbook "mercurial"
cookbook "git"

metadata
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source :rubygems

gem 'berkshelf'
gem 'thor-foodcritic'
gem 'vagrant', '~> 1.0.5'
6 changes: 6 additions & 0 deletions Thorfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# encoding: utf-8

require 'bundler'
require 'bundler/setup'
require 'thor/foodcritic'
require 'berkshelf/thor'
57 changes: 57 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
require 'berkshelf/vagrant'

Vagrant::Config.run do |top_config|
top_config.vm.define :git do |config|
config.vm.host_name = "vim-config-git-berkshelf"

config.vm.box = "debian-6.0.6"

config.vm.network :hostonly, "33.33.33.199"

config.ssh.max_tries = 40
config.ssh.timeout = 120

config.vm.provision :chef_solo do |chef|
chef.run_list = [
"recipe[git::default]",
"recipe[vim_config::default]"
]

chef.json = {
:vim_config => {
:bundles => {
"git" => [ "git://github.com/scrooloose/nerdcommenter.git",
"git://github.com/tpope/vim-endwise.git" ]
}
}
}
end
end

top_config.vm.define :hg do |config|
config.vm.host_name = "vim-config-hg-berkshelf"

config.vm.box = "debian-6.0.6"

config.vm.network :hostonly, "33.33.33.200"

config.ssh.max_tries = 40
config.ssh.timeout = 120

config.vm.provision :chef_solo do |chef|
chef.run_list = [
"recipe[mercurial::default]",
"recipe[vim_config::default]"
]

chef.json = {
:vim_config => {
:bundles => {
"hg" => [ "https://bitbucket.org/delroth/vim-ack" ]
}
}
}
end
end

end
52 changes: 52 additions & 0 deletions chefignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Put files/directories that should be ignored in this file.
# Lines that start with '# ' are comments.

## OS
.DS_Store
Icon?
nohup.out

## EDITORS
\#*
.#*
*~
*.sw[a-z]
*.bak
REVISION
TAGS*
tmtags
*_flymake.*
*_flymake
*.tmproj
.project
.settings
mkmf.log

## COMPILED
a.out
*.o
*.pyc
*.so

## OTHER SCM
*/.bzr/*
*/.hg/*
*/.svn/*

## Don't send rspecs up in cookbook
.watchr
.rspec
spec/*
spec/fixtures/*
features/*

## SCM
.gitignore

# Berkshelf
Berksfile
Berksfile.lock
cookbooks/*

# Vagrant
.vagrant

0 comments on commit d78631c

Please sign in to comment.