Sha256: 611d34933a97441cbb5b64dea9d54a5c1c6d6fd77cb6a1561706b2e1f55ec304

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 KB

Contents

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

Vagrant.require_plugin 'vagrant-lxc'
Vagrant.require_plugin 'vagrant-cachier'
Vagrant.require_plugin 'vagrant-pristine'
Vagrant.require_plugin 'vagrant-global-status'
Vagrant.require_plugin 'ventriloquist'

Vagrant.configure("2") do |config|
  config.vm.box = "raring64"
  config.vm.synced_folder "../", "/vagrant", id: 'vagrant-root'

  config.vm.network :private_network, ip: "192.168.123.123"
  config.vm.network :forwarded_port, guest: 8080, host: 8080

  config.cache.auto_detect = true

  config.vm.provider :virtualbox do |_, override|
    override.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box'
  end

  config.vm.provider :lxc do |lxc, override|
    # Required to boot nested containers
    lxc.customize 'aa_profile', 'unconfined'
    override.vm.box_url = 'http://bit.ly/vagrant-lxc-raring64-2013-07-12'
  end

  # Required to boot nested containers
  config.vm.provision :shell, inline: %[
    if ! [ -f /etc/default/lxc ]; then
      cat <<STR > /etc/default/lxc
LXC_AUTO="false"
USE_LXC_BRIDGE="false"
STR
    fi
  ]

  config.vm.provision :ventriloquist do |env|
    env.services << {
      redis:         { image: 'fgrehm/ventriloquist-redis',         tag: 'latest' },
      memcached:     { image: 'fgrehm/ventriloquist-memcached',     tag: 'latest' },
      elasticsearch: { image: 'fgrehm/ventriloquist-elasticsearch', tag: 'latest' }
    }
    env.services << ['pg:9.1', 'mysql']

    env.platforms << { ruby: { version: '2.0.0' } }
    env.platforms << %w( nodejs phantomjs go:1.1.2 erlang)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ventriloquist-0.2.1 development/Vagrantfile
ventriloquist-0.2.0 development/Vagrantfile