Having errors template parsing error using iproute2 modue from github [closed]

asked 2018-05-23 17:29:35 -0500

michaelokoluko gravatar image

Installed the iproute2 module from github. Created a feature branch and when applied I get the below error


Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template iproute2/etc/sysconfig/network-scripts/route.erb: Filepath: org/jruby/RubyArray.java Line: 1343 Detail: can't convert String into Integer at /etc/puppetlabs/code/environments/feature_CESEUE_1155/modules/iproute2/manifests/redhat_routes.pp:16:16 at /etc/puppetlabs/code/environments/feature_CESEUE_1155/modules/iproute2/manifests/routes.pp:26 on node "Test Server"

I understand that puppet needs to create the 2 files and update the 3rd listed below

1. Update /etc/iproute2/rt_tables with new entry: 200 t200-cs   -> can be different number/name except 0, 253, 254 & 255.

2. Create /etc/sysconfig/network-scripts/route-bond7 with entries: dev bond7 table t200-cs default via dev bond7 table t200-cs

3. Create /etc/sysconfig/network-scripts/rule-bond7 with entries: iif bond7 table t200-cs from table t200-cs    -> base IP from table t200-cs    -> VCS IP

so It seems I need to edit the "redhat_route.pp and route.pp (looking at the above error -possibly "route.erb")

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Kai Burghardt
close date 2018-05-26 13:54:33.474844