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

Extract Systemloaders into AutoPlugins #785

Merged
merged 12 commits into from
May 22, 2016
Merged

Conversation

muuki88
Copy link
Contributor

@muuki88 muuki88 commented Apr 25, 2016

Systemloader Plugin - Proposal

Goal of this PR is to refactor the JavaServerAppPackaging autoplugin and make system-loaders more flexible and configurable.

The main idea is to split the systemloaders in separate AutoPlugins. Usage would look like this

enablePlugins(JavaServerAppPackaging, SystemdPlugin)

This would trigger all the special server-folders and the configuration of a systemd start script.

Pro Con
Systemloaders are truly isolated and can evolve independetly No easy way to built a package with multiple systemloaders
Systemloaders can be used with other archetypes Possible breaking changes

Squeezing every customization into the JavaServerAppPackaging doesn't scale well codewise. The main pain point is, that things like this won't work anymore

serverLoading in Rpm = SystemV,
serverLoading in Debian = Systemd

We probably could allow something like

enablePlugins(Systemd, SystemV)

when break our API and really isolate the systemloaders. However I'm not sure if this is a common need to

  • specify different loaders
  • package with multiple loaders

The solution would, again, be submodules with different configurations.

Related issues

cc: @eed3si9n @dwhjames @fiadliel @metasim @kardapoltsev

@kardapoltsev
Copy link
Member

It's a good idea IMHO.

@dpennell
Copy link
Contributor

What would it even mean to have multiple system loaders?

  • build one RPM that tries to use multiple system loaders?
    • Does it use all available (yikes)?
    • One is default, alternates can be selected at install time?
      Unless somebody steps forward with a concrete use-case, I think you should proceed.

@muuki88
Copy link
Contributor Author

muuki88 commented May 1, 2016

Thanks for your feedback. I will create an implementation see how everything plays out.

@muuki88 muuki88 changed the title Add systemd plugin. Idea on how to configure systemloaders Extract Systemloaders into AutoPlugins May 22, 2016
@muuki88
Copy link
Contributor Author

muuki88 commented May 22, 2016

I will merge this and release as 1.2.0-M1. From there we can tackle all issues related to systemloader configuration issues.

@muuki88 muuki88 merged commit 0a6be58 into master May 22, 2016
@muuki88 muuki88 deleted the wip/systemloader-plugins branch May 22, 2016 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants