Project

General

Profile

Feature #24359

Create localized copies of templates for version control

Added by Jeff Sparrow about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

As it is right now, we find keeping track of templates a very tedious task. Yes, there is a plugin that pulls templates in from an external source, so you can version control from that. But that means maintaining a plugin, and editing the templates outside of Foreman UI. That doesn't make much sense.

Also, as it is right now, the templates are saved internally, in a non flat-file method. This means there is no way to version control them AND edit them via Foreman.
Can we please add a directory in ~foreman that just takes the templates as they are, and keeps a raw text copy of it somewhere in ~foreman? Then we can version control them right from Foreman (make a change, push to git because ~foreman is repo'd.

TL;DR - make templates a raw text file under ~foreman directory, for easy version control.


Related issues

Related to Foreman - Refactor #22529: Refactor Template rendering to use a proper rendering serviceClosed

History

#1 Updated by Marek Hulán about 1 year ago

This will be easier to achieve once the templates refactoring is done (targetted 1.20), we could add file source.

#2 Updated by Marek Hulán about 1 year ago

  • Related to Refactor #22529: Refactor Template rendering to use a proper rendering service added

Also available in: Atom PDF