matched logic in update_hiera to allow caller module to send template content instead of template location.