[module] add a hiera-hash to resources wrapper class and function