Setup Octoprint on a Linux machine.
This currently assumes use of the whole machine for Octoprint.
- [] Setup HA Proxy
- [] Setup TLS
- [] Add management of plugins
- [] Add backup/restore of settings
- [] Test upgrade flow
- Install Ansible. The easiest way (especially on Pi or a Debian system) is via Pip:
- (If on Pi/Debian):
sudo apt-get install -y python3-pip
- (Everywhere):
pip3 install ansible
- (If on Pi/Debian):
- Clone this repository:
git clone https://github.com/darrenmeehan/octoprint.git
, then enter the repository directory:cd octoprint
. - Install requirements:
ansible-galaxy collection install -r requirements.yml
(if you seeansible-galaxy: command not found
, restart your SSH session or reboot the Pi and try again) - Make copies of the following files and customize them to your liking:
example.inventory.ini
toinventory.ini
(replace IP address with your Pi's IP, or comment that line and uncomment theconnection=local
line if you're running it on the Pi you're setting up).example.config.yml
toconfig.yml
- Run the playbook:
ansible-playbook main.yml --ask-become-pass
If running locally on the machine: You may encounter an error like "Error while fetching server API version". If you do, please either reboot or log out and log back in, then run the playbook again.
MIT
This project was created in 2022 by Darren Meehan.