scottmuc / infrastructure

Documentation / Automation for personal third-party infrastructure
The Unlicense
10 stars 2 forks source link

Rebuild Raspbery PI - First repave #32

Closed scottmuc closed 2 years ago

scottmuc commented 2 years ago

Yay for Repaving!

As much as possible is documented inline in this issue template. In case of problems you may find help by viewing all the previous repave issues. Have fun!

Things to do with the existing build

Post OS install steps

scottmuc commented 2 years ago

This is going to be messy since it's my first repave of this machine in 2 years! Some notes already:

This should limit any service disruption.

scottmuc commented 2 years ago

OS installed and some of the preliminary manual network stuff is done:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.17-v7+ #1414 SMP Fri Apr 30 13:18:35 BST 2021 armv7l GNU/Linux
scottmuc commented 2 years ago

After installing ansible in WSL I was able to run the following:

ansible-playbook -i 192.168.2.10, --become --ask-become-pass ./bootstrap-playbook.yml

scottmuc commented 2 years ago

The playbook has unbound successfully installed, but unfortunately the unbound blocklist is no longer maintained and isn't in the syntax that unbound (v1.9.0) needs.

scottmuc commented 2 years ago

Need git-crypt installed and terraform (https://learn.hashicorp.com/tutorials/terraform/install-cli)

scottmuc commented 2 years ago

After repaving, the port forwarding from my router stopped working. It worked again after deleting and recreating the port forward. Might need to check if I should delete the port forward before the repave, and re-add it back afterwards.

This was discovered during the certbot certification verification process (which I'll need a few more repaves to iron out the kinks).

scottmuc commented 2 years ago

Thankfully setting up navidrome using the script (https://github.com/scottmuc/infrastructure/blob/main/pi/navidrome.sh) went without a hitch! I'll turn it into ansible for the next repave.

scottmuc commented 2 years ago

Calling this repave "complete". I haven't setup and installed Samba or the DHCP server. I'm feeling like a lot has already changed with the setup already, and I'm happy that I got things to a working state with nginx, unbound, and navidrome.

There's a lot I need to update in this template. So I'll conclude this repave when those updates happen and plan another repave soon. Given that all the ansible code went from zero to what is there now, I'm crossing my fingers that I can get to a good state in an hour (otherwise I have some kinks to work out).