Re: [Puppet Users] Determining puppet env from client

2021-06-22 Thread Martin Alfke
Hi Dave,

Environment is a server-side fact 
(https://puppet.com/docs/puppet/7/lang_facts_builtin_variables.html#lang_facts_builtin_variables-server-facts
 
)

It is not shown on the agent.
But I always thought that server side facts are shown in PE on the Node facts.
But I might be wrong.

Best,
Martin


> On 22. Jun 2021, at 14:45, daveford...@gmail.com  
> wrote:
> 
> 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  
>> > > 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
>>  
>> .
> 
> 
> -- 
> 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
>  
> .

-- 
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/2F4280B4-9271-40A9-9E79-43C6DEE00776%40gmail.com.


Re: [Puppet Users] Determining puppet env from client

2021-06-22 Thread daveford...@gmail.com
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  
> 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
>  
> 
> .
>
>
>

-- 
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.


Re: [Puppet Users] Determining puppet env from client

2021-06-22 Thread Martin Alfke
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  
> 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+unsubscr...@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
>  
> .

-- 
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/5558C3E8-9625-4083-9415-8C5E6ADB2431%40gmail.com.


[Puppet Users] Determining puppet env from client

2021-06-22 Thread daveford...@gmail.com
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+unsubscr...@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.