This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Vagrantfile
68 lines (62 loc) · 2.1 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id,
"--groups", "/matrix"]
end
end
Vagrant.configure("2") do |config|
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']
aws.instance_type = "m3.medium"
aws.region = ENV['AWS_REGION']
aws.subnet_id = ENV['AWS_SUBNET_ID']
aws.security_groups = ENV['AWS_SECURITY_GROUP_ID']
aws.ami = ENV['AWS_AMI']
aws.associate_public_ip = "true"
aws.tags = {
'Name' => 'matrix-synapse'
}
override.vm.box = "dummy"
override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = ENV['SSH_PRIVATE_KEY_PATH']
end
end
Vagrant.configure('2') do |config|
config.vm.provider :digital_ocean do |digital_ocean, override|
override.ssh.private_key_path = ENV['SSH_PRIVATE_KEY_PATH']
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
digital_ocean.token = ENV['DO_TOKEN']
digital_ocean.image = 'ubuntu-14-04-x64'
digital_ocean.region = ENV['DO_REGION']
digital_ocean.size = '512mb'
end
end
Vagrant.configure("2") do |config|
config.vm.define "synapse" do |dev|
dev.vm.box = "trusty64"
dev.vm.network :private_network, ip: "10.99.99.230"
dev.vm.hostname = "matrix-synapse"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.name = "matrix-synapse"
vb.customize ["modifyvm", :id,
"--groups", "/matrix",
"--memory", "1024"]
end
end
end
Vagrant.configure("2") do |config|
config.vm.provision "ansible" do |ansible|
ansible.host_key_checking = false
ansible.sudo = true
ansible.sudo_user = "vagrant"
ansible.playbook = "playbook.yml"
# ansible.raw_arguments = "-vvv"
end
end