theforeman/foremanctl

Review dynflow-sidekiq exec command

Offen

#72 geöffnet am 29.01.2025

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (38 Forks)auto 404
foremangood first issue

Repository-Metriken

Stars
 (25 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Based on https://github.com/evgeni/talks/pull/4#discussion_r1932083989 we should review the command:

https://github.com/theforeman/foreman-quadlet/blob/177348fc149e74a4adb6680cb239181f16cf8476/roles/foreman/tasks/main.yaml#L90

This copies the DYNFLOW_SIDEKIQ_SCRIPT (that's also set as an env var) and hardcodes the Rails environment, but do we even need to expose this in the first place? It's based on https://github.com/theforeman/foreman/blob/74ddd8851cebd21c268002e0c82a3619d2a9db66/extras/systemd/dynflow-sidekiq%40.service#L12-L20 but is it better to provide a better /usr/libexec/foreman/sidekiq-selinux wrapper script that has these defaults built in?

Contributor Guide