-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
37 lines (27 loc) · 1.17 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
# This guide is optimized for Vagrant 1.7 and above.
# Although versions 1.6.x should behave very similarly, it is recommended
# to upgrade instead of disabling the requirement below.
Vagrant.require_version ">= 1.7.0"
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 4
end
#config.vm.network "forwarded_port", guest: 32294, host: 32294
# Disable the new default behavior introduced in Vagrant 1.7, to
# ensure that all Vagrant machines will use the same SSH key pair.
# See https://github.com/hashicorp/vagrant/issues/5005
config.ssh.insert_key = false
config.vm.provision "shell",
inline: "sudo yum install -y git"
#, path: "scripts/install.sh"
#config.vm.provision "file", source: "tests/test.yml", destination: "/home/vagrant/playbook.yml"
#config.vm.provision "file", source: "tests/inventory", destination: "/home/vagrant/inventory"
#config.vm.provision "file", source: "defaults/main.yml", destination: "/home/vagrant/vars.yml"
# TODO VOMSES!!
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "tests/test.yml"
end
end