Sha256: 86450b77369c0bf99526e8b4749a9cfd2ffe34e443c04a63c6fc949602986877
Contents?: true
Size: 941 Bytes
Versions: 3
Compression:
Stored size: 941 Bytes
Contents
require "vagrant-aws" Vagrant.configure("2") do |config| config.vm.box = "<%= node[:vagrant][:box] %>" <% if node[:vagrant][:ssh_username] %> config.ssh.username = "<%= node[:vagrant][:ssh_username] %>" <% end %> <% if node[:vagrant][:ssh_private_key_path] %> config.ssh.private_key_path = "<%= node[:vagrant][:ssh_private_key_path] %>" <% end %> config.vm.synced_folder ".", "/vagrant", :id => "vagrant-root", :disabled => true config.vm.provider :aws do |aws| aws.keypair_name = "<%= node[:vagrant][:keypair_name] %>" aws.instance_type = "<%= node[:vagrant][:instance_type] %>" aws.region = ENV['AWS_DEFAULT_REGION'] || 'us-west-1' aws.terminate_on_shutdown = true aws.block_device_mapping = [ { 'DeviceName' => "/dev/sda1", 'Ebs.VolumeSize' => <%= node[:vagrant][:root_volume_size] %>, 'Ebs.DeleteOnTermination' => true } ] end end # vi: set ft=ruby :
Version data entries
3 entries across 3 versions & 1 rubygems