2022-08-18 09:58:24 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
2023-06-19 17:46:25 +00:00
|
|
|
config.vm.box = "debian/bookworm64"
|
2022-08-18 09:58:24 +00:00
|
|
|
|
|
|
|
config.vm.define "oidcbox"
|
|
|
|
|
|
|
|
config.vm.network "forwarded_port", guest: 4444, host: 4444, host_ip: "127.0.0.1"
|
|
|
|
config.vm.network "forwarded_port", guest: 3000, host: 3000, host_ip: "127.0.0.1"
|
|
|
|
config.vm.network "forwarded_port", guest: 4000, host: 4000, host_ip: "127.0.0.1"
|
|
|
|
|
|
|
|
config.vm.provider "libvirt" do |lv|
|
|
|
|
lv.memory = "2048"
|
|
|
|
lv.cpus = 2
|
|
|
|
lv.machine_virtual_size = 10
|
2023-06-19 17:46:25 +00:00
|
|
|
lv.memorybacking :access, :mode => "shared"
|
2022-08-18 09:58:24 +00:00
|
|
|
end
|
2023-06-19 17:46:25 +00:00
|
|
|
|
|
|
|
config.vm.synced_folder "./", "/vagrant", type: "virtiofs"
|
|
|
|
|
2022-08-18 09:58:24 +00:00
|
|
|
config.vm.provision "ansible" do |ansible|
|
|
|
|
ansible.playbook = "deployment/01_install_cacert_oidc.yml"
|
|
|
|
ansible.verbose = true
|
|
|
|
ansible.groups = {
|
|
|
|
"pgsqlserver" => ["oidcbox"],
|
|
|
|
"authserver" => ["oidcbox"],
|
|
|
|
"demoserver" => ["oidcbox"]
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|