ansible-fprobe/test/vagrant/Vagrantfile
2016-10-30 15:40:48 -04:00

32 lines
867 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
## for xenial, need to manually install python as python v2 is not in default image.
#config.vm.box = "ubuntu/xenial64"
#config.vm.box = "boxcutter/ubuntu1604"
config.vm.box = "ubuntu/trusty64"
#config.vm.box = "centos/7"
config.vm.provision :ansible do |ansible|
ansible.playbook = "site.yml"
#ansible.verbose = "vvvv"
#ansible.host_key_checking = false
#ansible.limit = 'all'
ansible.sudo = true
ansible.extra_vars = { ansible_ssh_user: 'vagrant' }
ansible.groups = {
"myrole" => ["vfprobe" ],
}
end
config.vm.define "vfprobe" do |vfprobe|
vfprobe.vm.hostname = "vfprobe"
end
end