lae / ansible-role-netbox

Cross-platform Ansible role for deploying NetBox, a DCIM/IPAM tool, in a production environment.
MIT License
200 stars 72 forks source link

Compatibility with Debian 12 #162

Closed davidmehren closed 11 months ago

davidmehren commented 1 year ago

The newer Python on Debian 12 requires the use of the --break-system-packages pip flag to install packages globally.

Debian 12 also does not ship with a cron implementation anymore, so the systemd-cron compatibility package needs to be installed.

lae commented 12 months ago

Long term I think we want to not pip install uwsgi into /usr/lib. Instead of --break-system-packages, per latest merge commit can you test netbox_uwsgi_in_venv: true works fine under Debian 12? We could just force installation into the virtualenv for Debian 12 as starters for moving to a virtualenv-only deployment.

sleinen commented 11 months ago

I have tried @lae's suggestion in comment 1750519004:

Instead of adding --break-system-packages (which does sound scary), I added

netbox_uwsgi_in_venv: true

to @davidmehren's debian-12.yml, and with that I was able to install NetBox just fine on Debian, based on a recently forked NetBox git repo (3.6.5+). (I did have to perform a small piece of Git configuration, for which I'll create a separate issue.)

lae commented 11 months ago

Superseded by #163.