From af2d8939112bb3ae0f17af2c6fc51e21799af7b0 Mon Sep 17 00:00:00 2001 From: Craig Tracey Date: Thu, 13 Nov 2014 16:09:22 -0500 Subject: [PATCH] Update Vagrantfile The Vagrantfile had been mostly ignored until now. Update it with the beginnings of variables for box name/url as well as some of the bits necessary for install bits under Ubuntu. This will eventually be extended to support other distros as well. --- Vagrantfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 1159bf5..a01b749 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,11 +1,20 @@ # encoding: UTF-8 +GIFTWRAP_MANIFEST = 'manifest.yml' +GIFTWRAP_BUILDBOX_NAME = 'ursula-precise' +GIFTWRAP_BUILDBOX_URL = 'http://apt.openstack.blueboxgrid.com/vagrant/ursula-precise.box' + Vagrant.configure('2') do |config| - config.vm.box = 'hashicorp/precise64' + config.vm.box = GIFTWRAP_BUILDBOX_NAME + config.vm.box_url = GIFTWRAP_BUILDBOX_URL + config.vm.provision 'shell', inline: <<-EOF apt-get update - apt-get install build-essential ruby1.9.1-dev -y + apt-get install -y build-essential ruby1.9.1-dev git python-pip python-dev python-virtualenv libxml2-dev libxslt-dev libffi-dev gem install --no-ri --no-rdoc fpm + cd /vagrant + python setup.py install + giftwrap build -m GIFTWRAP_MANIFEST EOF config.vm.define 'giftwrap' do |c|