Ruby File.read() returns a String, so guessing you...
# puppet
h
Ruby File.read() returns a String, so guessing you have an issue with your template text. Not sure how well deferred ERB works when evaluated on agent. Try it with EPP instead.