-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
67 lines (60 loc) · 1.94 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define :xenial64 do |c|
c.vm.box = "ubuntu/xenial64"
c.vm.provision :shell, inline: <<-EOF
curl https://sh.rustup.rs -sSf | su -l ubuntu -c "sh -s -- -y"
apt-get update
apt-get install -y gcc libssl-dev pkg-config cmake libdbus-glib-1-dev
curl https://sh.rustup.rs -sSf | sh -s -- -y
EOF
c.vm.network "private_network", ip: "192.168.20.103"
end
config.vm.define :trusty64 do |c|
c.vm.box = "ubuntu/trusty64"
c.vm.provision :shell, inline: <<-EOF
curl https://sh.rustup.rs -sSf | su -l ubuntu -c "sh -s -- -y"
apt-get update
apt-get install -y gcc libssl-dev pkg-config cmake libdbus-glib-1-dev
curl https://sh.rustup.rs -sSf | sh -s -- -y
EOF
end
config.vm.define :centos7 do |c|
c.vm.box = "centos/7"
c.vm.provision :shell, inline: <<-EOF
curl https://sh.rustup.rs -sSf | su -l vagrant -c "sh -s -- -y"
yum install -y gcc openssl-devel cmake dbus-devel
curl https://sh.rustup.rs -sSf | sh -s -- -y
cat << EOS > /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/x86_64/
gpgcheck=0
enabled=1
EOS
yum install -y nginx
service nginx start
EOF
c.vm.network "private_network", ip: "192.168.20.100"
end
config.vm.define :centos6 do |c|
c.vm.box = "centos/6"
c.vm.provision :shell, inline: <<-EOF
curl https://sh.rustup.rs -sSf | su -l vagrant -c "sh -s -- -y"
yum install -y gcc openssl-devel cmake dbus-devel
curl https://sh.rustup.rs -sSf | sh -s -- -y
cat << EOS > /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/x86_64/
gpgcheck=0
enabled=1
EOS
yum install -y nginx
service nginx start
EOF
c.vm.network "private_network", ip: "192.168.20.101"
end
config.vm.synced_folder ".", "/vagrant", type: "nfs"
end