Sha256: 9748a01599e54f714e7905bc75c3e4efb0159c40fd54ec2c59b898cde87976cd
Contents?: true
Size: 851 Bytes
Versions: 9
Compression:
Stored size: 851 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['PUPPET_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 :puppet do |puppet| puppet.manifests_path = 'manifests' puppet.manifest_file = 'default.pp' puppet.options = "--modulepath=/vagrant/modules:/vagrant/static-modules --hiera_config /vagrant/hiera_vagrant.yaml --environment=#{env}" end end end
Version data entries
9 entries across 9 versions & 1 rubygems