https://marketplace.digitalocean.com/apps/openvpn-pihole
python3 -m venv venv
venv/bin/pip install -U pip
venv/bin/pip install fabric
venv/bin/fab testbuild -H [BUILD_DROPLET_IP]
This will install your files and packages and run your scripts but will not perform a cleanup of the build system or power it down. This can be used for testing during development.
venv/bin/fab build -H [BUILD_DROPLET_IP]
This task will perform all steps (upload files, run scripts, install packages, clean up build system, power off) to prepare your droplet for snapshot.
See the Marketplace Partners guide
Error:
paramiko.ssh_exception.SSHException: not a valid RSA private key file
Fix:
puttygen id_rsa -O private-openssh -o new.key
If you like this tool, consider donating to the authors from which this work is derived:
https://github.com/Nyr/openvpn-install#donations
https://pi-hole.net/donate/