-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathVagrantfile
More file actions
49 lines (37 loc) · 1.16 KB
/
Vagrantfile
File metadata and controls
49 lines (37 loc) · 1.16 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.provision "shell" do |s|
ssh_pub_key = File.readlines("#{Dir.home}/vagrant/id_rsa.pub").first.strip
s.inline = <<-SHELL
echo #{ssh_pub_key} >> /home/vagrant/.ssh/authorized_keys
SHELL
end
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 4
end
config.vm.define "db1" do |db1|
db1.vm.box = "geerlingguy/centos7"
db1.vm.hostname = "db1"
db1.vm.network "private_network", ip: "192.168.33.10"
end
config.vm.define "db2" do |db2|
db2.vm.box = "geerlingguy/centos7"
db2.vm.hostname = "db2"
db2.vm.network "private_network", ip: "192.168.33.20"
end
config.vm.define "acs" do |acs|
acs.vm.box = "geerlingguy/centos7"
acs.vm.hostname = "acs"
acs.vm.network "private_network", ip: "192.168.33.30"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
end
end