feat: add Vagrant file and provisioning scripts
This commit is contained in:
commit
ad2a00a42c
25 changed files with 4805 additions and 0 deletions
scripts
15
scripts/02-provision.sh
Normal file
15
scripts/02-provision.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue