Add hiera support for temp dir

Add hiera support for temp dir