Bakery-enabled cluster of Drupal sites using Vagrant and Chef
Ruby PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config works Nov 18, 2013
roles works Nov 18, 2013
site-cookbooks/bakery librarian-chef Nov 18, 2013
tests/bakery/features move to new vm Nov 15, 2013
.gitignore librarian-chef Nov 18, 2013
.travis.yml Update .travis.yml Dec 2, 2012
Cheffile librarian-chef Nov 18, 2013
Cheffile.lock librarian-chef Nov 18, 2013
Gemfile Fix step definition missing RSpec matcher. Oct 19, 2012
README.md Update README.md Jan 6, 2014
Rakefile works Nov 18, 2013
Vagrantfile remove berkshelf reference Nov 18, 2013

README.md

Bakery-enabled cluster of Drupal sites for Bakery testing using Vagrant and Chef.

Installation

  1. Download Virtual Box
  2. Download & install vagrant
  3. git clone git://github.com/bjeavons/Bakery-Chef.git
  4. cd Bakery-Chef
  5. gem install librarian-chef
  6. librarian-chef install
  7. vagrant up

Running vagrant up will take awhile because it downloads the VM image. If it fails try running vagrant provision to retry the build.

When it is done you can connect to the vm server using vagrant ssh.

The vm's apache server will be accessible at 172.22.22.22 and it will create the following sites that you should add to your /etc/hosts file (all at 172.22.22.22):

  • masterd6.vbox - Drupal 6 master
  • d6.masterd6.vbox - Drupal 6 slave of Drupal 6 master
  • d7.masterd6.vbox - Drupal 7 slave of Drupal 6 master
  • masterd7.vbox - Drupal 7 master
  • d6.masterd7.vbox - Drupal 6 slave of Drupal 7 master
  • d7.masterd7.vbox - Drupal 7 slave of Drupal 7 master

Sites over SSL (self-signed cert)

  • smasterd6.vbox - Drupal 6 secure master
  • d6.smasterd6.vbox - Drupal 6 secure slave of Drupal 6 master
  • d7.smasterd6.vbox - Drupal 7 secure slave of Drupal 6 master
  • smasterd7.vbox - Drupal 7 secure master
  • d6.smasterd7.vbox - Drupal 6 secure slave of Drupal 7 master
  • d7.smasterd7.vbox - Drupal 7 secure slave of Drupal 7 master

Drupal sites come pre-installed with latest Bakery 2.x development release.

Edit the Vagrantfile to symlink Bakery modules from your host to ease development.

All admin accounts are username: admin and password: 1234

Testing

Cucumber tests of SSO and basic data synchronization are available in the /tests directory.

  1. Install Cucumber
  2. Install PhantomJS
  3. gem install poltergeist
  4. gem install rspec-expectations
  5. Run tests: cucumber tests/bakery/features