-
Notifications
You must be signed in to change notification settings - Fork 29
/
Vagrantfile
39 lines (32 loc) · 1012 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
35
36
37
38
39
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vbguest.no_remote = true
config.vbguest.auto_update = false
config.vm.define 'xenial' do |instance|
instance.vm.box = 'ubuntu/xenial64'
config.vm.provision "shell", inline: "
apt-get update && \
apt-get install -y gnupg python curl && \
curl -sL http://deb.nodesource.com/setup_11.x | bash - && \
apt-get install -y nodejs
"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "tests/main.yml"
ansible.verbose = 'vv'
ansible.become = true
end
end
config.vm.define 'centos7' do |instance|
instance.vm.box = 'geerlingguy/centos7'
config.vm.provision "shell", inline: "
curl -sL https://rpm.nodesource.com/setup_11.x | bash - && \
yum install -y nodejs
"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "tests/main.yml"
ansible.verbose = 'vv'
ansible.become = true
end
end
end