Project

General

Profile

Actions

Feature #18205

closed

Provide useful macros for templates and save_to_file helper

Added by Marek Hulán almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Looking at community templates we often repeat code around @host.operatingsystem, it's family, version, name. Another macro that would be handy is for storing the content into a file using cat << EOF > target. Ideally Foreman core should provide helpers that provides shortcuts for these, raise meaningful errors, DRY up the code between multiple templates, are testable and improve the template readability.


Related issues 1 (1 open0 closed)

Related to Foreman - Feature #24027: Provide some macros for OS name/family and version comparsionNewLukas Zapletal06/21/2018Actions
Actions

Also available in: Atom PDF