Skip to content

jbraffin/dotdeb-cookbook

 
 

Repository files navigation

dotdeb_repo Cookbook

Build Status Dependency Status

This cookbook includes recipes to add the Dotdeb repository to your Debian "Squeeze" or "Wheezy" systems to turn the boxes into powerful, stable and up-to-date LAMP servers.

Further information regarding the Dotdeb repository is available via http://www.dotdeb.org/ .

Recipes

dotdeb_repo::default

Adds the main repository to the sources.list.d and installs the GnuPG key.

dotdeb_repo::php_newest

Adds additional repository to the sources.list.d to install PHP 5.4 on Debian 6.0 "Squeeze" or PHP 5.5 on Debian 7.0 "Wheezy".

Attributes

  • ['dotdeb_repo']['priority'] - the priority of the repository (default 700)

Contribution

Virtual Development Environment

In order to ease the life of developers and prevent that the local machine looks like a rubbish tip a Vagrantfile has beend added.

Using Vagrant to create a virtual development environment is quite simple by follow these steps:

  1. Install Virtual Box
  2. Install Vagrant
  3. Install Vagrant-Berkshelf Plugin
  4. Install Chef

Version Requirements

The present (vagrant) configuration uses Berkshelf >= 3.0, which required Vagrant >= 1.5.2 as well as vagrant-berkshelf plugin >= 2.0.0. The instructions below have been successfully applied on Debian 7.5.

cd /tmp
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
dpkg -i vagrant_1.6.3_x86_64.deb
vagrant plugin install vagrant-berkshelf --plugin-version 2.0.1

Preparation of the Virtual Environment

cd /tmp
git clone git@github.com:GeBeater/dotdeb-cookbook.git
cd dotdeb-cookbook
vagrant up

Tests

In order to validate changes at the recipes and these effects you can provision the virtual environment via the vagrant provision command from the host system.

The lint tool and spec can be run from the guest system in the folder /vagrant via bundle exec rake.

License

MIT License

About

Chef cookbook to add the Dotdeb repository to Debian boxes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 93.1%
  • Shell 6.9%