vagrant-openvas/Vagrantfile

25 lines
805 B
Ruby
Raw Normal View History

2022-10-22 15:52:36 +02:00
# Defines our Vagrant environment
#
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.define "openvas" # Pour ne pas avoir le nom "default" par defaut
config.vm.hostname = "openvas"
config.vm.network "forwarded_port", guest: 9392, host: 9392
# config.vm.network :private_network, ip: "192.168.56.4"
config.vm.provider "virtualbox" do |vb|
vb.name = "openvas"
vb.memory = "4096"
vb.cpus = 4
end
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/openvas.yml"
ansible.groups = {
"openvas_servers" => ["openvas"],
"all_groups:children" => ["openvas_servers"]
}
end
end