# Defines our Vagrant environment # # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "debian/bullseye64" config.vm.define "gitlab" # Pour ne pas avoir le nom "default" par defaut config.vm.hostname = "gitlab" config.vm.network :private_network, ip: "192.168.56.4" config.vm.provider "virtualbox" do |vb| vb.name = "gitlab" vb.memory = "4096" vb.cpus = 2 end config.vm.provision :shell, path: "bootstrap-gitlab.sh" config.vm.provision "ansible" do |ansible| ansible.playbook = "ansible/gitlab_server.yml" ansible.groups = { "gitlab_servers" => ["gitlab"], "all_groups:children" => ["gitlab_servers"] } end end