intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 18 forks source link

Chore/ansible cleanup #377

Closed goeland86 closed 1 year ago

goeland86 commented 1 year ago

Cleaned out some of the unused roles, moved the replicape-only stuff into a legacy folder, and moved unused but potentially useful roles into an addons folder.

The main playbooks are simplified by using the meta/main.yml to define installation dependencies between roles (i.e. weston can't install until linux_preparation has run, mainsail needs moonraker, etc.).

goeland86 commented 1 year ago

Ah. I think that's probably a change in the octoprint config file we can do to point it at the Right location ( /home/debian/printer_data/logs/klippy.log).

I'll push them change to the pr and build an image locally to test.

goeland86 commented 1 year ago

After discussion on discord, it was agreed to have the logs stored in /var/log, so to unify the setup a symlink for the entire log-area in /home/debian/printer_data/logs pointing to /var/log/klipper_logs was created as part of the linux_preparation role.

eliasbakken commented 1 year ago

I think the klipper systemd file already puta the log in /var/log/klippy dosent it?

tir. 27. jun. 2023, 20:30 skrev Jon C @.***>:

After discussion on discord, it was agreed to have the logs stored in /var/log, so to unify the setup a symlink for the entire log-area in /home/debian/printer_data/logs pointing to /var/log/klipper_logs was created as part of the linux_preparation role.

— Reply to this email directly, view it on GitHub https://github.com/intelligent-agent/Refactor/pull/377#issuecomment-1610022728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4VBWMUGL2EBI3PBWF73KDXNMRF3ANCNFSM6AAAAAAZQKGB5A . You are receiving this because your review was requested.Message ID: @.***>

goeland86 commented 1 year ago

I think the klipper systemd file already puta the log in /var/log/klippy dosent it?

Yes. However moonraker, mainsail, etc. all store their logs to /home/debian/printer_data/logs. What I did is mainly to ensure that the symlink exists, so that we don't accidentally get some logs in the home directory instead of zram.