This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
39 lines (30 loc) · 1.2 KB
/
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
38
39
# -*- 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 = "opscode-centos-6.4"
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box"
config.vm.define :local do |local|
local.vm.box = "opscode-centos-6.4"
local.vm.hostname = "test-circleci"
end
config.vm.define :remote do |remote|
remote.vm.box = "dummy"
remote.vm.synced_folder "", "", disabled: true
remote.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 = "circleci keys"
aws.instance_type = "t1.micro"
aws.region = "ap-northeast-1"
## Private AMI: Amazon Linux + enable tty-less sudo
aws.ami = "ami-df4320de"
aws.security_groups = [ 'vagrant' ]
aws.tags = { 'Name' => 'CircleCI' }
override.ssh.username = "ec2-user"
## This private key is configured on CircleCI
override.ssh.private_key_path = ENV['AWS_SSH_KEY_PATH']
end
end
end