So I'm setting up puppet environments. This is what I have in my puppet.conf under the [master] section
environmentpath = $confdir/environments
Now if I set environment inside the puppet.conf it will grab the environment I have set up ($confdir/environments/test), but if I set it in hiera it seems to ignore it completely, what is really odd is that it compiles a catalog, so it does work, but it is clearly not compiling the correct catalog, since I have a notify in my site.pp to let me know which environment it ran out of.
If I set the following in a hiera file I should expect puppet environments to work correct?
environment: 'test'
Any ideas how I can trace what catalog it is compiling? Or why it seems to be ignoring hiera?