Sha256: cb42286573be0a4314b04d4e457d9ab28873287ca890882ddd98667070051aff

Contents?: true

Size: 945 Bytes

Versions: 1

Compression:

Stored size: 945 Bytes

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :

require 'json'

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

vagrantConfigFile = "vagrantConfig.json"

if File.exists?(vagrantConfigFile)
  userConfig = JSON.parse(File.read(vagrantConfigFile))
else
  userConfig = {}
end

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box     = "trusty64"
  config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
  config.vm.provider :virtualbox do |vb|
      vb.name = "buckaroo-local.inventid.net"
  end

  memory = userConfig["memory"] || 1024
  cpus = userConfig["cpus"] || 1

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", memory, "--cpus", cpus]
  end


  config.vm.hostname = "buckaroo-local.inventid.net"
  config.vm.provision :shell, :path => "provision.sh"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buckaroo-1.0.0 Vagrantfile