Skip to content

Conversation

tdy91
Copy link

@tdy91 tdy91 commented Jun 20, 2025

This PR adds support for systems with multiple UPS units configured via pillars.

It adjusts the map.jinja logic to generate one systemd nut-driver@<ups> service per UPS instance on Debian 12+, where the packaging now uses per-unit services.

For compatibility, systems running Debian <=11 continue to use the legacy nut-driver service.

The service.running logic in nut/server/service/running.sls has been updated to loop over all generated services for multi-UPS setups.

Tested on:

  • Debian 10 (legacy nut-driver)
  • Debian 12 (multi-UPS with nut-driver@<ups>)

This change ensures backward compatibility with existing setups while aligning with systemd service changes in newer distributions.

@tdy91 tdy91 requested a review from javierbertoli as a code owner June 20, 2025 15:54
Copy link
Member

@javierbertoli javierbertoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, @tdy91 !
Thanks for this, it looks like a great addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants