getting a syntax error on the puppet generated code from a forge module (theforeman/foreman_proxy)

56 views
Skip to first unread message

Bill Sirinek

unread,
Jun 21, 2017, 9:24:05 AM6/21/17
to Puppet Users
I'm trying to set up the foreman_proxy module and getting a syntax error related to resource types.

Both the puppet master and the foreman server are running RHEL7.  The puppet server and agents are 4.9.4 (PE2017.1.1)     

I removed the puppetserver that foreman installed (after foreman was done installing) since I had one already.
On the foreman server, I also downgraded puppet-agent from the 4.10.x agent to 4.9.4 so it would match all my other agents and puppet master.   Keeping the 4.10.x agent on the foreman server still produces this error though.

I'm running foreman 1.15.1

The foreman server also houses the smart proxy, dhcp service and tftp service.

Related modules and versions that I have installed since working on this:

mod 'puppet/extlib', '1.1.0'
mod 'theforeman/dhcp', '3.1.0'
mod 'theforeman/foreman', '7.2.0'
mod 'theforeman/foreman_proxy', '5.1.0'
mod 'theforeman/tftp', '2.0.0'

Here's some hopefully helpful data:

Running Puppet:
root@foreman115 # puppet agent -tv
Info: Using configured environment 'foreman115'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Syntax error at '/' at /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37 on node foreman115.domain.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run


Testing this code on the puppetmaster:

root@puppetmaster # puppet parser validate /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp --environment=foreman115
Error: Could not parse for environment foreman115: Syntax error at '/' at /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37


Error shown in puppetmaster logs:

2017-06-20 13:38:17,250 ERROR [qtp1388916904-78514] [puppetserver] Puppet Syntax error at '/' at /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37 on node foreman115.domain.com
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/parser_support.rb:127:in `on_error'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:271:in `
_racc_evalact'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:189:in `_racc_yyparse_rb'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/lexer2.rb:712:in `scan'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:174:in `
_racc_yyparse_rb'
org/jruby/RubyKernel.java:1242:in `catch'

/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:168:in`_racc_yyparse_rb'
(eval):3:in `
yyparse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/parser_support.rb:240:in `_parse'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/parser_support.rb:134:in `parse_string'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:28:in `
parse_string'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/puppet_resource_type_impl_instantiator.rb:21:in `create'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/module_loaders.rb:156:in `find'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:142:in `
internal_load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `load_typed'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/runtime3_type_loader.rb:66:in `find_impl'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/runtime3_type_loader.rb:55:in `
find'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:142:in `internal_load'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `load_typed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:141:in `
internal_load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `load_typed'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:141:in `internal_load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `
load_typed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/loader.rb:49:in `load'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:104:in `find_builtin_resource_type'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:71:in `
find_resource_type'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:23:in `create_resources'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:321:in `create_resources'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:842:in `
eval_ResourceExpression'
org/jruby/RubyArray.java:2414:in `map'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:839:in `eval_ResourceExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `
visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1005:in `eval_IfExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/scope.rb:938:in `
with_guarded_scope'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1003:in `eval_IfExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `eval_BlockExpression'

org
/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyEnumerable.java:852:in `
inject'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `eval_BlockExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:63:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:32:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:72:in `
evaluate'
org/jruby/RubyKernel.java:1242:in `catch'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:71:in `evaluate'
org/jruby/RubyKernel.java:1242:in `
catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:70:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast.rb:31:in `safeevaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:184:in `
evaluate_code'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:81:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `
profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:73:in `evaluate'

org
/jruby/RubyArray.java:1613:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:395:in `
evaluate_classes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:61:in `create_resources'

org
/jruby/RubyArray.java:2414:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:37:in `
create_resources'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:321:in `create_resources'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:842:in `eval_ResourceExpression'
org/jruby/RubyArray.java:2414:in `
map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:839:in `eval_ResourceExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:347:in `eval_BinaryExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:465:in `eval_RelationshipExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `
visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:347:in `eval_BinaryExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:465:in `
eval_RelationshipExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `
eval_BlockExpression'
org/jruby/RubyArray.java:1613:in `each'

org
/jruby/RubyEnumerable.java:852:in `inject'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `
eval_BlockExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:63:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:32:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:72:in `evaluate'
org/jruby/RubyKernel.java:1242:in `
catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:71:in `evaluate'

org
/jruby/RubyKernel.java:1242:in `catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:70:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast.rb:31:in `safeevaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:184:in `evaluate_code'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:81:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:73:in `
evaluate'
org/jruby/RubyArray.java:1613:in `each'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:395:in `evaluate_classes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/../../../puppet/functions/include.rb:16:in `
include'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatch.rb:47:in `invoke'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb:38:in `dispatch'
org/jruby/RubyKernel.java:1242:in `
catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb:37:in `dispatch'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/function.rb:46:in `call'
org/jruby/RubyKernel.java:1242:in `
catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/function.rb:45:in `call'

/etc/puppetlabs/code/environments/foreman115/manifests/site.pp:108:in `call_function'
org/jruby/RubyKernel.java:1079:in `
eval'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:284:in `call_function'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `
profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:282:in `call_function'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:941:in `call_function_with_block'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:936:in `
eval_CallMethodExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1007:in `
eval_IfExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/scope.rb:938:in `with_guarded_scope'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1003:in `eval_IfExpression'
2017-06-20 13:38:17,250 ERROR [qtp1388916904-78514] [puppetserver] Puppet Syntax error at '/' at /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37 on node foreman115.domain.com
2017-06-20 13:38:17,251 ERROR [qtp1388916904-78514] [puppetserver] Puppet Server Error: Syntax error at '/' at /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37 on node foreman115.domain.com
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/parser_support.rb:127:in `
on_error'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:271:in `_racc_evalact'

/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:189:in`_racc_yyparse_rb'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/lexer2.rb:712:in `
scan'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:174:in `_racc_yyparse_rb'

org
/jruby/RubyKernel.java:1242:in `catch'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/racc/parser.rb:168:in `
_racc_yyparse_rb'
(eval):3:in `yyparse'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/parser_support.rb:240:in `_parse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/parser_support.rb:134:in `
parse_string'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:28:in `parse_string'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/puppet_resource_type_impl_instantiator.rb:21:in `create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/module_loaders.rb:156:in `
find'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:142:in `internal_load'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `load_typed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/runtime3_type_loader.rb:66:in `
find_impl'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/runtime3_type_loader.rb:55:in `find'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:142:in `internal_load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `
load_typed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:141:in `internal_load'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `load_typed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:141:in `
internal_load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:32:in `load_typed'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/loader.rb:49:in `load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:104:in `
find_builtin_resource_type'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:71:in `find_resource_type'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:23:in `create_resources'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:321:in `
create_resources'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:842:in `eval_ResourceExpression'

org
/jruby/RubyArray.java:2414:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:839:in `
eval_ResourceExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1005:in `
eval_IfExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/scope.rb:938:in `with_guarded_scope'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1003:in `eval_IfExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `
visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `eval_BlockExpression'
org/jruby/RubyArray.java:1613:in `
each'
org/jruby/RubyEnumerable.java:852:in `inject'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `eval_BlockExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `
visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:63:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:32:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:72:in `evaluate'

org
/jruby/RubyKernel.java:1242:in `catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:71:in `
evaluate'
org/jruby/RubyKernel.java:1242:in `catch'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:70:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast.rb:31:in `
safeevaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:184:in `evaluate_code'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:81:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `
profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:73:in `evaluate'
org/jruby/RubyArray.java:1613:in `
each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:395:in `evaluate_classes'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:61:in `create_resources'
org/jruby/RubyArray.java:2414:in `
map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_resource_support.rb:37:in `create_resources'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:321:in `create_resources'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:842:in `
eval_ResourceExpression'
org/jruby/RubyArray.java:2414:in `map'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:839:in `eval_ResourceExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `
visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:347:in `eval_BinaryExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:465:in `
eval_RelationshipExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:347:in `
eval_BinaryExpression'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:465:in `eval_RelationshipExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `eval_BlockExpression'

org
/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyEnumerable.java:852:in `
inject'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:638:in `eval_BlockExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:63:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:32:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:72:in `
evaluate'
org/jruby/RubyKernel.java:1242:in `catch'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:71:in `evaluate'
org/jruby/RubyKernel.java:1242:in `
catch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:70:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast.rb:31:in `safeevaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:184:in `
evaluate_code'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:81:in `evaluate'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `
profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:73:in `evaluate'

org
/jruby/RubyArray.java:1613:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:395:in `
evaluate_classes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/../../../puppet/functions/include.rb:16:in `include'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatch.rb:47:in `invoke'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb:38:in `
dispatch'
org/jruby/RubyKernel.java:1242:in `catch'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb:37:in `dispatch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/function.rb:46:in `
call'
org/jruby/RubyKernel.java:1242:in `catch'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/function.rb:45:in `call'
/etc/puppetlabs/code/environments/foreman115/manifests/site.pp:108:in `
call_function'
org/jruby/RubyKernel.java:1079:in `eval'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:284:in `call_function'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `
profile'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:282:in `call_function'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:941:in `
call_function_with_block'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:936:in `eval_CallMethodExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `
evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1007:in `eval_IfExpression'

/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/scope.rb:938:in `with_guarded_scope'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1003:in `
eval_IfExpression'




Thanks

Bill

Henrik Lindberg

unread,
Jun 22, 2017, 6:28:15 AM6/22/17
to puppet...@googlegroups.com
On 21/06/17 15:24, Bill Sirinek wrote:
> I'm trying to set up the foreman_proxy module and getting a syntax error
> related to resource types.
>

There should be no syntax errors from generated code - unless possibly
using old generated code with a bug in the generator, or using generated
code from a version that is using syntax not available in an older
version of puppet.

Please show the content of the generated .pp file to make it possible to
see what the problem is (it may have been fixed already as we have fixed
some problems with faulty quoting).

The best is probably to log a ticket in Puppet's Jira with the contents
of the generated file and the details from this post.

Best,
- henrik

> Both the puppet master and the foreman server are running RHEL7. The
> puppet server and agents are 4.9.4 (PE2017.1.1)
>
> I removed the puppetserver that foreman installed (after foreman was
> done installing) since I had one already.
> On the foreman server, I also downgraded puppet-agent from the 4.10.x
> agent to 4.9.4 so it would match all my other agents and puppet master.
> Keeping the 4.10.x agent on the foreman server still produces this
> error though.
>
> I'm running foreman 1.15.1
>
> The foreman server also houses the smart proxy, dhcp service and tftp
> service.
>
> Related modules and versions that I have installed since working on this:
>
> mod 'puppet/extlib', '1.1.0'
> mod 'theforeman/dhcp', '3.1.0'
> mod 'theforeman/foreman', '7.2.0'
> mod 'theforeman/foreman_proxy', '5.1.0'
> mod 'theforeman/tftp', '2.0.0'
>
> Here's some hopefully helpful data:
>
> *Running Puppet:*
> |root@foreman115 # puppet agent -tv
> Info:Using configured environment 'foreman115'
> Info:Retrieving pluginfacts
> Info:Retrieving plugin
> Info:Loading facts
> Error:Couldnot retrieve catalog from remote server:Error500 on
> SERVER:ServerError:Syntaxerror at '/' at
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37 on
> node foreman115.domain.com <http://domain.com/>
> Warning:Notusing cache on failed catalog
> Error:Couldnot retrieve catalog; skipping run|
>
>
> *Testing this code on the puppetmaster:*
>
> |root@puppetmaster # puppet parser validate
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp
> --environment=foreman115
> Error:Couldnot parse forenvironment foreman115:Syntax error at '/' at
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37|
>
>
> *Error shown in puppetmaster logs:*
>
> |2017-06-2013:38:17,250 ERROR
> [qtp1388916904-78514][puppetserver]PuppetSyntax error at '/' at
> on node foreman115.domain.com <http://foreman115.domain.com/>
> 2017-06-20 13:38:17,251 ERROR [qtp1388916904-78514] [puppetserver]
> Puppet Server Error: Syntax error at '/' at
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37
> on node foreman115.domain.com <http://foreman115.domain.com/>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/bb4f3002-5ead-479c-a87f-53b690d08bd8%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/bb4f3002-5ead-479c-a87f-53b690d08bd8%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Bill Sirinek

unread,
Jun 22, 2017, 9:06:09 AM6/22/17
to Puppet Users

Here's the file causing the error. I highlighted line 34 of the code, the slash at the end is where the error is pointing. Running puppet parser validate on the file using the 4.10.x agent does not produce this error, but it happens with 4.9.4 (PE 2017.1.1)

root@puppetmaster # puppet parser validate /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp
Error: Could not parse for environment production: Syntax error at '/' at /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37

root@puppetmaster
# cat /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp
# This file was automatically generated on 2017-06-20 11:07:45 -0400.
# Use the 'puppet generate types' command to regenerate this file.


# foreman_smartproxy registers a smartproxy in foreman.
Puppet::Resource::ResourceType3.new(
 
'foreman_smartproxy',
 
[
   
# The basic property that the resource should be in.
   
#
   
# Valid values are `present`, `absent`.
   
Puppet::Resource::Param(Enum['present', 'absent'], 'ensure'),


   
# The url of the smartproxy
   
#
   
# Values can match `/
   
#         ([a-zA-Z][\-+.a-zA-Z\d]*):                           (?# 1: scheme)
   
#         (?:
   
#            ((?:[\-_.!~*'()a-zA-Z\d;?:@&=+$,]|%[a-fA-F\d]{2})(?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*)                    (?# 2: opaque)
   
#         |
   
#            (?:(?:
   
#              \/\/(?:
   
#                  (?:(?:((?:[\-_.!~*'()a-zA-Z\d;:&=+$,]|%[a-fA-F\d]{2})*)@)?        (?# 3: userinfo)
   
#                    (?:((?:(?:[a-zA-Z0-9\-.]|%\h\h)+|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|\[(?:(?:[a-fA-F\d]{1,4}:)*(?:[a-fA-F\d]{1,4}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|(?:(?:[a-fA-F\d]{1,4}:)*[a-fA-F\d]{1,4})?::(?:(?:[a-fA-F\d]{1,4}:)*(?:[a-fA-F\d]{1,4}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))?)\]))(?::(\d*))?))? (?# 4: host, 5: port)
   
#                |
   
#                  ((?:[\-_.!~*'()a-zA-Z\d$,;:@&=+]|%[a-fA-F\d]{2})+)                 (?# 6: registry)
   
#                )
   
#              |
   
#              (?!\/\/))                           (?# XXX: '\/\/' is the mark for hostport)
   
#              (\/(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*(?:;(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*)*(?:\/(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*(?:;(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*)*)*)?                    (?# 7: path)
   
#            )(?:\?((?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*))?                 (?# 8: query)
   
#         )
   
#         (?:\#((?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*))?                  (?# 9: fragment)
   
#       /x`.
    Puppet::Resource::Param(Pattern[/
        ([a-zA-Z][\-+.a-zA-Z\d]*):                           (?# 1: scheme)
        (?:
           ((?:[\-_.!~*'()a-zA-Z\d;?:@&=+$,]|%[a-fA-F\d]{2})(?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*)                    (?# 2: opaque)
        |
           (?:(?:
             \/\/(?:
                 (?:(?:((?:[\-_.!~*'()a-zA-Z\d;:&=+$,]|%[a-fA-F\d]{2})*)@)?        (?# 3: userinfo)
                   (?:((?:(?:[a-zA-Z0-9\-.]|%\h\h)+|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|\[(?:(?:[a-fA-F\d]{1,4}:)*(?:[a-fA-F\d]{1,4}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|(?:(?:[a-fA-F\d]{1,4}:)*[a-fA-F\d]{1,4})?::(?:(?:[a-fA-F\d]{1,4}:)*(?:[a-fA-F\d]{1,4}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))?)\]))(?::(\d*))?))? (?# 4: host, 5: port)
               |
                 ((?:[\-_.!~*'()a-zA-Z\d$,;:@&=+]|%[a-fA-F\d]{2})+)                 (?# 6: registry)
               )
             |
             (?!\/\/))                           (?# XXX: '\/\/' is the mark for hostport)
             (\/(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*(?:;(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*)*(?:\/(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*(?:;(?:[\-_.!~*'()a-zA-Z\d:@&=+$,]|%[a-fA-F\d]{2})*)*)*)?                    (?# 7: path)
           )(?:\?((?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*))?                 (?# 8: query)
        )
        (?:\#((?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*))?                  (?# 9: fragment)
      /], 'url')
 
],
 
[
   
# The name of the smartproxy.
   
Puppet::Resource::Param(Any, 'name', true),


   
# Foreman's base url.
   
Puppet::Resource::Param(Any, 'base_url'),


   
# Foreman's effective user for the registration (usually admin).
   
Puppet::Resource::Param(Any, 'effective_user'),


   
# Foreman oauth consumer_key
   
Puppet::Resource::Param(Any, 'consumer_key'),


   
# Foreman oauth consumer_secret
   
Puppet::Resource::Param(Any, 'consumer_secret'),


   
# Foreman SSL CA (certificate authority) for verification
   
Puppet::Resource::Param(Any, 'ssl_ca'),


   
# Timeout for HTTP(s) requests
   
Puppet::Resource::Param(Any, 'timeout'),


   
# The specific backend to use for this `foreman_smartproxy`
   
# resource. You will seldom need to specify this --- Puppet will usually
   
# discover the appropriate provider for your platform.Available providers are:
   
#
   
# rest_v2
   
# :
   
#
   
# rest_v3
   
# :
   
Puppet::Resource::Param(Any, 'provider')
 
],
 
{
   
/(.*)/ => ['name']
 
},
 
true,
 
false)

Henrik Lindberg

unread,
Jun 22, 2017, 11:14:59 AM6/22/17
to puppet...@googlegroups.com
On 22/06/17 15:06, Bill Sirinek wrote:
>
> Here's the file causing the error. I highlighted line 34 of the code,
> the slash at the end is where the error is pointing. Running puppet
> parser validate on the file using the 4.10.x agent does not produce this
> error, but it happens with 4.9.4 (PE 2017.1.1)
>
> |


There is a bug in puppet that was fixed. before 4.10.0 it was not
possible to have newlines in a regular expression. That is why it works
in 4.10

- henrik

> root@puppetmaster # puppet parser validate
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp
> Error:Couldnotparse forenvironment production:Syntaxerror at '/'at
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37
>
> /(.*)/=>['name']
> > node foreman115.domain.com <http://foreman115.domain.com>
> <http://domain.com/>
> > Warning:Notusing cache on failed catalog
> > Error:Couldnot retrieve catalog; skipping run|
> >
> >
> > *Testing this code on the puppetmaster:*
> >
> > |root@puppetmaster # puppet parser validate
> >
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp
>
> > --environment=foreman115
> > Error:Couldnot parse forenvironment foreman115:Syntax error at
> '/' at
> >
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37|
>
> >
> >
> > *Error shown in puppetmaster logs:*
> >
> > |2017-06-2013:38:17,250 ERROR
> > [qtp1388916904-78514][puppetserver]PuppetSyntax error at '/' at
> >
> /etc/puppetlabs/code/environments/foreman115/.resource_types/foreman_smartproxy.pp:34:37
> on
> > node foreman115.domain.com <http://foreman115.domain.com>
> > an email to puppet-users...@googlegroups.com <javascript:>
> > <mailto:puppet-users...@googlegroups.com <javascript:>>.
> <https://groups.google.com/d/msgid/puppet-users/bb4f3002-5ead-479c-a87f-53b690d08bd8%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
>
> --
>
> Visit my Blog "Puppet on the Edge"
> http://puppet-on-the-edge.blogspot.se/
> <http://puppet-on-the-edge.blogspot.se/>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/c74268f3-c3f6-46a6-a98a-33ec7182314d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/c74268f3-c3f6-46a6-a98a-33ec7182314d%40googlegroups.com?utm_medium=email&utm_source=footer>.

Henrik Lindberg

unread,
Jun 22, 2017, 11:20:25 AM6/22/17
to puppet...@googlegroups.com
On 22/06/17 17:14, Henrik Lindberg wrote:
> On 22/06/17 15:06, Bill Sirinek wrote:
>>
>> Here's the file causing the error. I highlighted line 34 of the code,
>> the slash at the end is where the error is pointing. Running puppet
>> parser validate on the file using the 4.10.x agent does not produce
>> this error, but it happens with 4.9.4 (PE 2017.1.1)
>>
>>

See
https://tickets.puppetlabs.com/browse/PUP-7306

- henrik
Reply all
Reply to author
Forward
0 new messages