bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Add EPP support #251

Open PierreR opened 6 years ago

PierreR commented 6 years ago

Would it be to much of an effort to support https://puppet.com/docs/puppet/5.3/lang_template_epp.html

Cheers,

bartavelle commented 6 years ago

It would be a significant endeavor, as language-puppet works like "old puppet", where things are either statements or expressions. This won't cut it with templates, where most things are statement expressions.

This would be nice though!

PierreR commented 5 years ago

link to #190 and #191 for discussion about rewriting the parser

bartavelle commented 5 years ago

I am looking into using a lexer that mimicks the original. This would have support for epp out of the box. However, it would require supporting expressions as statements, which would require a lot of changes in the parser :/

PierreR commented 5 years ago

Cannot upgrade puppet-nginx to 0.14.0 because of this:

https://github.com/voxpupuli/puppet-nginx/compare/v0.13.0...v0.14.0

PierreR commented 5 years ago

Another module that is now using the epp function: https://github.com/puppetlabs/puppetlabs-docker/blob/master/manifests/run.pp#L425