Sha256: ea46c376047e46f98fd3e911669bbc73249b5431d5176243ddb06337e63e52bf

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

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

# Not really needed, but useful while developing so that vagrant picks it up
Vagrant.require_plugin 'vagrant-lxc'

Vagrant.configure("2") do |config|
  config.vm.box      = "quantal64"
  config.vm.box_url  = 'http://dl.dropbox.com/u/13510779/lxc-quantal64-2013-04-10.box'
  # Uncomment if you want to try out a box built locally
  # config.vm.box_url  = '../boxes/output/lxc-quantal64.box'
  config.vm.hostname = 'lxc-quantal64-example'

  config.vm.synced_folder "/tmp", "/vagrant_data"


  config.vm.provider :lxc do |lxc|
    lxc.customize 'cgroup.memory.limit_in_bytes', '400M'
    lxc.customize 'cgroup.memory.memsw.limit_in_bytes', '500M'
  end

  config.vm.provision :shell, :inline => <<-SCRIPT
echo "Hi there I'm a shell script used for provisioning"
  SCRIPT

  config.vm.provision :puppet do |puppet|
    puppet.module_path    = "puppet/modules"
    puppet.manifests_path = "puppet/manifests"
    puppet.manifest_file  = "site.pp"
  end

  config.vm.provision :chef_solo do |chef|
    chef.add_recipe "hello-world"
    chef.log_level = :debug
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-lxc-0.3.2 example/Vagrantfile
vagrant-lxc-0.3.1 example/Vagrantfile
vagrant-lxc-0.3.0 example/Vagrantfile