mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 19:37:06 +00:00
29 lines
1004 B
Ruby
29 lines
1004 B
Ruby
# -*- 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|
|
|
# Every Vagrant development environment requires a box. You can search for
|
|
# boxes at https://vagrantcloud.com/search.
|
|
config.vm.box = "generic/rocky8"
|
|
|
|
# Create a forwarded port mapping which allows access to a specific port
|
|
# within the machine from a port on the host machine and only allow access
|
|
# via 127.0.0.1 to disable public access
|
|
config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
|
|
|
# Provision VM using Ansible playbook
|
|
config.vm.provision "ansible" do |ansible|
|
|
ansible.verbose = "v"
|
|
ansible.playbook = "playbook.yml"
|
|
ansible.host_vars = {
|
|
"default" => {
|
|
"deploy_environment" => "vagrant"
|
|
}
|
|
}
|
|
end
|
|
end
|