Hi Maritn, thanks for answering. 

Yes, that's the sort of thing I was expecting to see.... But, I have no 
such fact listed.  

I wondered if this was a consequence of having an old copy of puppet agent 
installed - the box I'm testing on is running 3.5 - but the lists of 'core 
facts'; on puppet's website don't list an 'environment' fact, and I can't 
find any fact in the PE console's fact dialog box.  Have I misunderstood 
your comment?

Thanks

On Tuesday, 22 June 2021 at 13:31:14 UTC+1 Martin Alfke wrote:

> Hi Dave,
>
> On PE Console, select a Node to view Node facts and check the environment 
> Variable.
> This variable is set on Master side, not agent side.
> Check that the environment variable matches to the PE selected node 
> environment.
> You should then be able to filter using the environment “Fact”.
>
> Best,
> Martin
>
>
> On 22. Jun 2021, at 13:58, daveford...@gmail.com <daveford...@gmail.com> 
> wrote:
>
> Hi - I've just starting working with a complex puppet environment that's 
> running with dozens of different environments.  
>
> The PE console doesn't really seem to give me a way to filter views of 
> machines by anything other than facts.  So I'm wondering if there's a fact 
> I can use to determine which environment a puppet agent is running in? I 
> can't see anything out ofthe box from facter, and also can't seem to get 
> anything useful from puppet config cmd.  Our environment is being fed from 
> the ENC in PE, rather than the local puppet.conf file, so examing that is 
> no use.   The only place I can seem to see any references ot the env. is in 
> the last_run_report in the cache - is that the best place to find this 
> info? 
>
> Thanks
> Dave
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/f41e941a-0212-4cdb-adef-d6fc56494141n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-users/f41e941a-0212-4cdb-adef-d6fc56494141n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/87891db5-2feb-448f-9a1d-ed215496cde1n%40googlegroups.com.

Reply via email to