Enhancement #9576
openEnsure that the python-jinja2 library is present
Description
Hello,
At the moment, the rendering of a Jinja2 template fails on a server without python-jinja2.
Could it be possible to add the library either:
- In the dependencies of the rudder-agent package ;
- Through a promise, when it's needed.
Thanks.
Updated by Jonathan CLARKE about 8 years ago
- Project changed from Rudder to 41
Alexandre Anriot wrote:
Hello,
At the moment, the rendering of a Jinja2 template fails on a server without python-jinja2.
Could it be possible to add the library either:
- In the dependencies of the rudder-agent package ;
We'd rather avoid having rudder-agent depend on Python for just one generic method. We already require Perl (for the inventory), and would like to limit requirements.
- Through a promise, when it's needed.
This could be a good alternative. Maybe a call to package_present("python-jinja2") in the template jinja2 ncf method?
Updated by Alexis Mousset over 7 years ago
- Target version changed from 1.0 to 1.1
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 1.1 to 4.1.9
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.1.9 to 4.1.10
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
Updated by Florian Heigl over 6 years ago
make it a -recommend for the package?
- Through a promise, when it's needed.
should at least be automatic: IF a NCF technique is using the method, have a specific error to be returned if missing, or add a correct flag in the system techniques.
It should not just hit a wall and let the user figure out that "oh, no sorry, you could click this but it won't work"
Personally, I think rudder has to sort it out. NCF is the users' interface, he should not be required to debug (and log on) to the system.
For me the warning in the docs was good and on time, but really, let the system techniques or NCF sort it out.
Updated by François ARMAND over 6 years ago
- Suggestion strength set to Want - This would make my life a lot easier but I can manage without
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Effort required set to Small
The recommand is a good idea. We could list all non mandatory dependencies as such, and explains for what they are recommanded.
The need to see the system log is also a problem. We should at bare minimum at least report on the compliance report "Error: missing mandatory dependency on the system: XXXX. Please install python-jinja2 (or whatever)" so that the user can immediately know how to solve the problem without having to explore.
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.17 to 4.1.18
Updated by Vincent MEMBRÉ almost 6 years ago
- Target version changed from 4.1.18 to 4.1.19
Updated by Alexis Mousset almost 6 years ago
- Target version changed from 4.1.19 to 4.1.20
Updated by François ARMAND almost 6 years ago
- Target version changed from 4.1.20 to 4.1.21
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 4.1.21 to 4.1.22
Updated by Benoît PECCATTE over 5 years ago
- Target version changed from 4.1.22 to 5.0.10
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.10 to 5.0.11
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.11 to 5.0.12
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.12 to 5.0.13
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.13 to 5.0.14
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.14 to 5.0.15
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.15 to 5.0.16
Updated by Alexis Mousset almost 5 years ago
- Target version changed from 5.0.16 to 5.0.17
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.17 to 5.0.18
Updated by Benoît PECCATTE over 4 years ago
- Target version changed from 5.0.18 to 6.2.0~beta1
Updated by Vincent MEMBRÉ about 4 years ago
- Target version changed from 6.2.0~beta1 to 6.2.0~rc1
Updated by François ARMAND about 4 years ago
- Target version changed from 6.2.0~rc1 to 7.0.0~beta1
Updated by Alexis Mousset over 3 years ago
- Target version changed from 7.0.0~beta1 to Ideas (not version specific)
Updated by Benoît PECCATTE about 3 years ago
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods
Updated by François ARMAND almost 3 years ago
- Tracker changed from User story to Enhancement