forked from travis-ci/worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
34 lines (30 loc) · 894 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
# frozen_string_literal: true
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.synced_folder(
'.', '/home/vagrant/go/src/github.com/travis-ci/worker'
)
config.vm.provision 'shell', path: '.vagrant-provision.sh'
config.vm.provider 'virtualbox' do |v|
v.memory = 1024
v.cpus = 2
end
config.vm.provider 'aws' do |aws, override|
aws.access_key_id = ENV['AWS_ACCESS_KEY']
aws.secret_access_key = ENV['AWS_SECRET_KEY']
aws.keypair_name = ENV['AWS_KEYPAIR']
aws.ami = 'ami-7747d01e'
aws.instance_type = 'c3.4xlarge'
override.ssh.username = 'vagrant'
override.ssh.private_key_path = ENV['AWS_SSH_PRIVATE_KEY']
aws.block_device_mapping = [
{
'DeviceName' => '/dev/sda1',
'Ebs.VolumeSize' => 100
}
]
aws.tags = {
'Name' => 'travis-worker-vagrant-trusty'
}
end
end