refactored init_puppet to accommodate hiera.