# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.require_plugin 'vagrant-lxc' Vagrant.configure("2") do |config| config.vm.box = "ubuntu-cloud" config.vm.hostname = 'ubuntu-cloud-box' config.vm.network :private_network, ip: "192.168.33.10" config.vm.synced_folder "/tmp", "/vagrant_data" config.vm.provider :lxc do |lxc| config.vm.box_url = '../boxes/output/ubuntu-cloud.box' lxc.start_opts << 'lxc.cgroup.memory.limit_in_bytes=400M' lxc.start_opts << 'lxc.cgroup.memory.memsw.limit_in_bytes=500M' end config.vm.provision :shell, :inline => 'echo "Hi there I\'m a shell script used for provisioning"' config.vm.provision :puppet do |puppet| puppet.module_path = "puppet/modules" puppet.manifests_path = "puppet/manifests" puppet.manifest_file = "site.pp" # If you want to make some noise # puppet.options << [ '--verbose', '--debug' ] end end