Sha256: 60dacc2fe406102190981f940c2d99d217b6a5f83b04856a9c400e2f03d7f9fc

Contents?: true

Size: 899 Bytes

Versions: 13

Compression:

Stored size: 899 Bytes

Contents

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

Vagrant.require_plugin 'vagrant-lxc'
Vagrant.require_plugin 'vagrant-cachier'

ENV['BOX_NAME'] ||= 'quantal64'
puts "Running vagrant commands using #{ENV['BOX_NAME']} box"

Vagrant.configure("2") do |config|
  config.vm.box = ENV['BOX_NAME']
  config.vm.hostname = 'lxc-test-box'
  config.vm.box_url = ENV['BOX_URL']
  config.vm.network :forwarded_port, guest: 80, host: 8080

  config.cache.auto_detect = true

  config.vm.provider :lxc do |lxc|
    # lxc.sudo_wrapper = '/usr/bin/lxc-vagrant-wrapper'
  end

  config.vm.provision :shell,
    inline: 'mkdir -p /vagrant/tmp && echo -n "Provisioned" > /vagrant/tmp/provisioning'

  config.vm.provision :shell,
    inline: 'apt-get install apache2 -y'

  config.vm.provision :shell, privileged: false,
    inline: "if ! [ -f $HOME/original-box ]; then echo '#{ENV['BOX_NAME']}' > $HOME/original-box; fi"
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vagrant-lxc-1.2.4 spec/Vagrantfile
vagrant-lxc-1.2.3 spec/Vagrantfile
vagrant-lxc-1.2.2 spec/Vagrantfile
vagrant-lxc-1.2.1 spec/Vagrantfile
vagrant-lxc-1.2.0 spec/Vagrantfile
vagrant-lxc-1.1.0 spec/Vagrantfile
vagrant-lxc-1.0.1 spec/Vagrantfile
vagrant-lxc-1.0.0 spec/Vagrantfile
vagrant-lxc-1.0.0.alpha.3 spec/Vagrantfile
vagrant-lxc-1.0.0.alpha.2 spec/Vagrantfile
vagrant-lxc-1.0.0.alpha.1 spec/Vagrantfile
vagrant-lxc-0.8.0 spec/Vagrantfile
vagrant-lxc-0.7.0 spec/Vagrantfile