Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Vagrant/Berkshelf configs added

  • Loading branch information...
commit 745f0e0debaa33c3c0485539c22ae458c0af9c70 1 parent 82ecc78
@mdxp mdxp authored
Showing with 104 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +3 −0  Berksfile
  3. +4 −0 Gemfile
  4. +44 −0 Vagrantfile
  5. +52 −0 chefignore
View
1  .gitignore
@@ -1,4 +1,5 @@
Gemfile.lock
+Berksfile.lock
tmp/
# Test Kitchen
.kitchen
View
3  Berksfile
@@ -0,0 +1,3 @@
+site :opscode
+
+metadata
View
4 Gemfile
@@ -1,3 +1,7 @@
source :rubygems
+gem 'berkshelf'
+gem 'vagrant', '~> 1.0.5'
+gem 'rake'
+gem 'foodcritic'
gem 'test-kitchen'
View
44 Vagrantfile
@@ -0,0 +1,44 @@
+require 'berkshelf/vagrant'
+
+Vagrant::Config.run do |config|
+ config.vm.host_name = "drupal-berkshelf"
+
+ config.vm.box = "opscode-ubuntu-12.04"
+ config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-12.04.box"
+
+ config.vm.customize ["modifyvm", :id, "--memory", "512"]
+
+ config.vm.network :hostonly, "33.33.33.11"
+
+ config.vm.forward_port 80, 8080
+ config.vm.share_folder("v-root", "/vagrant", ".")
+
+ config.vm.provision :shell, :inline => "sudo aptitude update"
+
+ config.ssh.max_tries = 40
+ config.ssh.timeout = 120
+
+ config.vm.provision :chef_solo do |chef|
+ chef.json = {
+ :www_root => '/vagrant/public',
+ :mysql => {
+ :server_root_password => "rootpass",
+ :server_repl_password => "replpass",
+ :server_debian_password => "debpass"
+ },
+ :drupal => {
+ :db => {
+ :password => "drupalpass"
+ },
+ :dir => "/vagrant/mysite"
+ },
+ :hosts => {
+ :localhost_aliases => ["drupal.vbox.local", "dev-site.vbox.local"]
+ }
+ }
+
+ chef.run_list = [
+ "recipe[drupal::default]"
+ ]
+ end
+end
View
52 chefignore
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.