Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError on debian stretch epp template #84

Closed
aba-rechsteiner opened this issue Aug 21, 2018 · 2 comments
Closed

SyntaxError on debian stretch epp template #84

aba-rechsteiner opened this issue Aug 21, 2018 · 2 comments

Comments

@aba-rechsteiner
Copy link

aba-rechsteiner commented Aug 21, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.3
  • Distribution: Debian 9.5
  • Module version: v2.3.0

How to reproduce (e.g Puppet code you use)

class { 'fail2ban':
  config_file_template => "fail2ban/${::lsbdistcodename}/etc/fail2ban/jail.conf.epp",
}

What are you seeing

Syntax error since v2.3.0

Output log

Info: Using configured environment 'dev'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.RaiseException: (SyntaxError) /etc/puppetlabs/code/environments/production/modules/fail2ban/templates/stretch/etc/fail2ban/jail.conf.epp:232: syntax error, unexpected kIN
; _erbout.concat(( "ssh" in $fail2ban::jails ).to_s); _erbout.concat "\nport = ssh\nlogpath = %(sshd_log)s\nbackend = %(sshd_backend)s\n\n\n[sshd-ddos]\n# This jail corresponds to the standard configuration in Fail2ban.\n# The mail-whois action send a notification e-mail with a whois request\n# in the body.\nenabled = "
^
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

@ekohl
Copy link
Member

ekohl commented Aug 21, 2018

You're probably using a too old version of extlib. It's trying to handle epp with erb. Extlib 2.3.0 or newer should properly handle this:

{
"name": "puppet/extlib",
"version_requirement": ">= 2.3.0 < 3.0.0"
},

@aba-rechsteiner
Copy link
Author

okay thx @ekohl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants