Commit 3cdcc94a authored by helmo's avatar helmo

Add a Vagrant file for testing debian packages

parent d3f17d53
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get update
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
#echo "debconf debconf/priority select critical" | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections
debconf-set-selections <<EOF
aegir3-hostmaster aegir/db_password string PASSWORD
aegir3-hostmaster aegir/db_password seen true
aegir3-hostmaster aegir/db_user string root
aegir3-hostmaster aegir/db_host string localhost
aegir3-hostmaster aegir/email string
aegir3-hostmaster aegir/site string
postfix postfix/main_mailer_type select Local only
sudo apt-get install --yes libapache2-mod-php5 mysql-server apache2 php5-mysql php5-gd git-core git
#sudo DPKG_DEBUG=developer apt-get install --yes aegir3
echo "Now install packages with sudo dpkg -i /vagrant/*.deb, copy them from the paretn dir and run with 'vagrant ssh "
echo "See the docs on on how to build the debian packages"
SCRIPT do |config| = "debian/jessie64"
config.vm.host_name = "aegir3-deb-unstable-no-puppet.test"
config.vm.provision "shell", inline: $script
# We can speed up subsequent rebuilds by caching the apt cache directories
# on the host machine.
config.vm.share_folder("apt_cache", "/var/cache/apt/archives", "tmp/apt/cache", :create => true)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment