refactor agent config into hiera/hiera2