User story #4924
closedEnable installing rudder-webapp and rudder-inventory-endpoint using system's jetty (not rudder-jetty)
Description
Currently our packages provide rudder-webapp and rudder-inventory-endpoint in independant packages, but they depend on rudder-jetty (our re-packaged version of jetty, which is basically the same as upstream). This imposes a strong constraint on the version of jetty to use, and some users would like to use their own version of jetty, or the one provided by their OS.
We should rework the packaging to:
- On Debian systems, rudder-webapp and rudder-inventory-endpoint should depend on "rudder-jetty | jetty | jetty8" (see https://packages.debian.org/search?keywords=jetty)
- On RPM systems, use virtual package names (via the "Provides" feature), by adapting the rudder-jetty package to provide the virtual package name and adapting rudder-webapp and rudder-inventory-endpoint to depend on the virtual package name. This is made slightly trickier by the fact that different distributions provide different virtual names for jetty (see table below), but this can easily be managed using RPM spec's 'if %{x}' macros
- Adapt both packages to install the webapps under /opt/rudder/share/webapps (instead of /opt/rudder/jetty7/webapps)
- Adapt the context file (rudder.xml) to use a the new path to the WAR
- RHEL 6 : jetty-eclipse
- Fedora : jetty-server
- SLES 11 : SLES does not package jetty. Seriously. Just depend on rudder-jetty.
Updated by Jonathan CLARKE over 10 years ago
Update: we also need the rudder-{webapp,inventory-endpoint} packages to install the context XML files to /opt/rudder/share/webapps (next to the WARs) and create a symlink from /opt/rudder/jetty7/contexts/ if that directory exists.
Updated by Jonathan CLARKE over 10 years ago
Also, we should add a couple of lines in the documentation explaining that when users install a plugin, they need to edit the context XML file to add it to the classpath (we do this automagically in our rudder-jetty init script but users with their own jetty won't have this benefit).
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~beta1 to 2.11.0~beta2
Updated by Matthieu CERDA over 10 years ago
- Status changed from 12 to Pending release
Updated by Matthieu CERDA over 10 years ago
- Status changed from Pending release to Discussion
Hm, I don't think the documentation has been done yet.
Updated by Matthieu CERDA over 10 years ago
- Target version changed from 2.11.0~beta2 to 2.11.0~rc1
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~rc1 to 2.11.0~rc2
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~rc2 to 2.11.0
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0 to 2.11.0~beta2
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from 12 to Pending release
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging