Sha256: 30c880ef78d871a919836b5925ead99162eeb6380060f2d06d684bcdc3016ad9
Contents?: true
Size: 816 Bytes
Versions: 28
Compression:
Stored size: 816 Bytes
Contents
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.define :<%=name%> do |node| bridge = ENV['VAGRANT_BRIDGE'] bridge ||= 'eth0' env = ENV['CHEF_ENV'] env ||= 'dev' node.vm.box = '<%=box%>' <%if(options['box_url']) %> <%="node.vm.box_url = '#{options['box_url']}'"%> <%end%> node.vm.network :public_network, :bridge => bridge node.vm.hostname = '<%=name%>.local' node.vm.provider :virtualbox do |vb| vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2] end node.vm.provision :chef_solo do |chef| chef.cookbooks_path = ['static-cookbooks', 'cookbooks'] chef.roles_path = 'roles' chef.add_role('<%=name%>') chef.environment = env chef.environments_path = 'environments' end end end
Version data entries
28 entries across 28 versions & 1 rubygems