Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynflow Sidekiq service files do not get updated if dynflow_redis_url has been set #1191

Open
highpingblorg opened this issue Oct 22, 2024 · 2 comments

Comments

@highpingblorg
Copy link

The issue

If a user would set a custom Redis URL via dynflow_redis_url that is not redis://localhost:6379/6, the Dynflow orchestrator and worker(s) will attempt to connect to the default URL which is set when installing the package foreman-dynflow-sidekiq.

In the current state, implementing Redis authentication with foreman is impossible without manually modifying the state of the needed service file, which in return makes the configuration not idempotent. The solution will allow for better Redis configuration for Dynflow Sidekiq.

The solution

Ensure that puppet is managing the [email protected] file and modifying the correct setting so the Redis URL is updated.

Both the orchestrator and worker(s) service files are a symlink to the static file [email protected] that is installed with the foreman-dynflow-sidekiq package.

highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
@ekohl
Copy link
Member

ekohl commented Oct 22, 2024

@adamruzicka are you aware of this issue and can we solve it in a nicer way?

highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
highpingblorg added a commit to highpingblorg/puppet-foreman that referenced this issue Oct 22, 2024
@adamruzicka
Copy link
Contributor

Apparently redis url can be configured from within a rails initializer so we might be able to switch to that and have settings.yaml be the only source of truth. That being said, I'm not sure how well would interleaving the initialization of rails, dynflow and sidekiq play out. Also, by losing the option to configure dynflow-sidekiq instances separately we would close the door to having multi-executor-world deployments, which noone really does, but which is technically possible as of now.

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

No branches or pull requests

3 participants