Sha256: 62a02db9db2f7ba4f5213b663d92e3d70cbf9b7c4e044ff605ec544ddabdfea3
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
Vagrant.configure("2") do |config| config.vm.define :<%=name%> do |node| device = ENV['VAGRANT_BRIDGE']|| 'eth0' <%if(options['box_url']) -%> <%="node.vm.box_url = '#{options['box_url']}'" -%> <%end -%> <%if(options['provider'].eql?('virtualbox')) -%> node.vm.box = '<%=box%>' node.vm.network :public_network, :bridge => device node.vm.hostname = '<%=name%>.local' node.vm.provider :virtualbox do |vb| vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2] end <%elsif(options['provider'].eql?('libvirt')) -%> pool = ENV['VAGRANT_POOL'] config.vm.provider :libvirt do |domain, override| override.vm.network :public_network, :bridge => device , :dev => device domain.uri = 'qemu+unix:///system' domain.memory = 2048 domain.cpus = 2 domain.storage_pool_name = pool if pool override.vm.synced_folder './', '/vagrant', type: 'nfs', nfs_udp: false, nfs_version: 4 end <%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" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opskeleton-0.10.1 | templates/puppet/vagrant.erb |