Strange invalid value for Integer error
I got the following msg:
Error while evaluating a Function Call, Failed to parse template nrpe/etc/nagios/nrpe.cfg.erb: Filepath: org/jruby/RubyString.java Line: 1228 Detail: invalid value for Integer: "\n" at /etc/puppetlabs/code/environments/prod/modules/nrpe/manifests/classes/configuration.pp:15:15 on node
but the .erb file is only 262 lines long, so I assume for '1228', its talking about a jruby file?
The code is currently working on a 3.2 server, this is running against a v4 (2.4) server.
The only ruby style code in the .erb is
allowed_hosts=<% @env['icinga_servers'].each do |icinga_server| -%><% ipInt = Socket.gethostbyname(icinga_server) %><%= "%d.%d.%d.%d," % [ipInt, ipInt, ipInt, ipInt] %><% end %>
but as I know nothing of Java or Ruby, I'm stuck ;)