Did facts.environment behavior change some time in the last 5 years? It no longer seems to do anything I'd expect it to do.
PQL queries:
facts.environment = “” returns no nodes
facts.environment != “” returns all nodes
facts.environment is null returns no nodes
facts.environment is not null returns no nodes
But when I use a notify facts.environment in a manifest, nothing shows up leading me to believe it's null.
Even more weird, the first time I tried the notify I got the value for _puppet_inventory_1. Haven't gotten it since.
I make tweaks in a Puppet agent environment hiera yaml file, but nodes with that env specified don't get those changes.
What am I missing here? Where does/is facts.environment supposed to pull its value from?