feat: add Vagrant file and provisioning scripts

This commit is contained in:
Emmanuel BENOîT 2024-12-29 18:28:07 +01:00
commit ad2a00a42c
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
25 changed files with 4805 additions and 0 deletions

15
scripts/02-provision.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
# Create the Ansible venv
if [ ! -d /var/cache/provision/ansible ]; then
python -m venv /var/cache/provision/ansible
fi
source /var/cache/provision/ansible/bin/activate
pip install --upgrade 'ansible>=10,<11' netaddr
# Run the playbook
cd /var/cache/provision/playbook
exec ansible-playbook provision.yml