diff options
author | varac <varacanero@zeromail.org> | 2015-01-07 11:45:05 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-01-19 10:35:17 +0100 |
commit | df9c4d5af39c0eb4f48a9540a688b34a36722d12 (patch) | |
tree | d22c5cbf20963c7b6a1b2f6985414be368aad2c5 /Vagrantfile | |
parent | 2cbe39d723d429a8aea7601d37da8b694f77a81b (diff) |
added Vagrantfile and provision scripts
- use leap jessie boxes for now
- remove rng-tools hack that speeded up key generation from Vagrant provisioning
we don't want to generate weak keys, even when it takes longer
- set source box as default for 'vagrant up'
- properly override vm.box_url for different providers
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/Vagrantfile b/Vagrantfile index f30af60b..d0e8ad26 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -5,14 +5,52 @@ VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = "fbernitt/debian-testing-amd64" - config.vm.network :forwarded_port, guest: 3333, host: 3333 + # we need a debian testing vagrantbox because + # - currently the useragent debian packages depend on python-cryptography which is only + # available in debian jessie (for the fernet module to create keys) + # - the source installation needs npm, which is also only available in debian jessie + + # Please verify the sha512 sum of the downloaded box before importing it into vagrant ! + # see https://leap.se/en/docs/platform/details/development#Verify.vagrantbox.download + # for details + + config.vm.box = "leap-jessie-amd64" + config.vm.define "source", primary: true do |source| + source.vm.provider "virtualbox" do |v, override| + override.vm.box_url = "https://downloads.leap.se/platform/vagrant/virtualbox/leap-debian-jessie-amd64-virtualbox.box" + end + source.vm.provider "libvirt" do |v, override| + override.vm.box_url = "https://downloads.leap.se/platform/vagrant/libvirt/Debian-jessie.beta1-amd64-netboot.box" + end + source.vm.provision "puppet" do |puppet| + puppet.manifests_path = "provisioning/manifests" + puppet.module_path = "provisioning/modules" + puppet.manifest_file = "source.pp" + end + end + + config.vm.define "deb", autostart: false do |deb| + # until https://github.com/pixelated-project/pixelated-user-agent/issues/226 is not fixed, + # we depend on a debian testing box + + config.vm.box = "leap-jessie-amd64" + deb.vm.provider "virtualbox" do |v, override| + override.vm.box_url = "https://downloads.leap.se/platform/vagrant/virtualbox/leap-debian-jessie-amd64-virtualbox.box" + end + deb.vm.provider "libvirt" do |v, override| + override.vm.box_url = "https://downloads.leap.se/platform/vagrant/libvirt/Debian-jessie.beta1-amd64-netboot.box" + end + deb.vm.provision "puppet" do |puppet| + puppet.manifests_path = "provisioning/manifests" + puppet.module_path = "provisioning/modules" + puppet.manifest_file = "deb.pp" + end + end + + + config.vm.network :forwarded_port, guest: "3333", guest_ip: "127.0.0.1", host: "3333" config.vm.provider "virtualbox" do |v| v.memory = 1024 end - config.vm.provision "puppet" do |puppet| - puppet.manifests_path = "provisioning" - puppet.manifest_file = "provision.pp" - end end |