An ansible playbook is available at https://github.com/depenguin-me/depenguinme-ansible
It will very easily install FreeBSD to a server booted into the rescue console.
Existing data on the disks will be destroyed when caution_wipe_disks=yes
is set in the inventory.
🚀 This playbook automates the unattended bsdinstall process.
git clone https://github.com/depenguin-me/depenguinme-ansible.git
Edit the file inventory/hosts
for your server's FQDN and ultimate username on the installed host. Set SSH keys.
Your server must be booted into the rescue console before continuing.
Create a python virtual environment
python3 -m pip install virtualenv
python3 -m venv .venv
source .venv/bin/activate
(.venv) .venv/bin/python3 -m pip install --upgrade pip
(.venv) .venv/bin/python3 -m pip install -r requirements.txt
Provided your server is booted into the rescue console, you can run the playbook from your local computer:
(.venv) .venv/bin/ansible-playbook site.yml
Hydration is important, get something to drink while you wait for your server to become available in 10mins.
Open a SSH connection to your host. (May require removing old keys in .ssh/known_hosts
)
sudo su -
to become root.
As of 4 January 2024 this has been tested with two-disk and four-disk Hetzner servers, and conf_disktype=
configured as mirror or raid10.
The playbook won't work on Xneelo because it finishes install before the rescue system times out. Server boots back into rescue console.
The playbook won't work on OVHCloud because exiting the rescue system is a manual process to set boot from disk.
home | bsdinstall | zfsinstall | rescuetools | ansible | eli5 | about | news | support | github |