Bug#874188: fai-client: Integrate some form of file templating system
Hi, I've used envsubst[1] in my fai setup. envsubst comes from gettext-base so most people have installed and it's very easy to use. jinja2 is more powerful (can do loops etc), so there are some cases where it is more useful. Riku [1] http://manpages.debian.net/envsubst
Bug#874188: fai-client: Integrate some form of file templating system
hi Thomas - as it is python-centric it may not be the best choice for fai, but given ansible's increasing popularity i would suggest jinja2 is worth a look. thank you! andy -- andrew bezellainternet archive
Bug#874188: fai-client: Integrate some form of file templating system
> On Sun, 03 Sep 2017 14:15:00 -0700, Noah Meyerhans> said: > it would be > really helpful to have some kind of file templating system integrated into > FAI, possibly in the fcopy program directly. Any suggestions, which template system to use? Or which features this template system should support? Here are some features I know: - variable substitution - loops - execute any sort of code IMO variable substitution is the most important one. What's your oppinion? -- regards Thomas
Bug#874188: fai-client: Integrate some form of file templating system
Package: fai-client Severity: wishlist In our use of FAI for generating the stretch cloud images, we use fcopy's preinst scripts to implement a crude form of templating. See https://anonscm.debian.org/cgit/cloud/fai-cloud-images.git/tree/files/etc/apt/sources.list for the files and script. In order to avoid having to re-implement the templating system everywhere and encourage reduced repetition throughout the config tree, it would be really helpful to have some kind of file templating system integrated into FAI, possibly in the fcopy program directly. Thanks noah