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