Project

General

Profile

Actions

Feature #24359

open

Create localized copies of templates for version control

Added by Jeff Sparrow over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
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 1 (0 open1 closed)

Related to Foreman - Refactor #22529: Refactor Template rendering to use a proper rendering serviceClosedTimo GoebelActions
Actions #1

Updated by Marek Hulán over 6 years ago

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

Actions #2

Updated by Marek Hulán over 6 years ago

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

Also available in: Atom PDF