get categories from hiera