-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile
37 lines (25 loc) · 914 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'dummy'
config.vm.provider :aws do |aws, override|
aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
aws.keypair_name = ENV['AWS_KEYPAIR_NAME']
#Coming soon..
#aws.associate_public_ip = true
#aws.subnet_id = '' #public subnet of your VPC
aws.security_groups = ''
aws.region = ''
aws.ami = 'ami-896c96fe'
aws.instance_type = 't1.micro'
override.ssh.username = ENV['AWS_SSH_USER']
override.ssh.private_key_path = ENV['AWS_KEY_PATH']
end
config.vm.provision 'ansible' do |ansible|
ansible.playbook = 'build/playbook.yml'
ansible.verbose = 'vv'
end
end