Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread R.I.Pienaar
- Original Message - On Oct 17, 10:23 am, Mohamed Lrhazi lrh...@gmail.com wrote: - When the master calls my ENC, it knows what the environment of the client is, regardless of where it got it from, right? No, it doesn't, and it can't. That's one of the things the ENC is

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread Nigel Kersten
On Tue, Oct 18, 2011 at 6:57 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - On Oct 17, 10:23 am, Mohamed Lrhazi lrh...@gmail.com wrote: - When the master calls my ENC, it knows what the environment of the client is, regardless of where it got it from, right?

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread R.I.Pienaar
- Original Message - On Tue, Oct 18, 2011 at 6:57 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - On Oct 17, 10:23 am, Mohamed Lrhazi lrh...@gmail.com wrote: - When the master calls my ENC, it knows what the environment of the

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread Craig White
On Oct 18, 2011, at 8:07 AM, Nigel Kersten wrote: On Tue, Oct 18, 2011 at 6:57 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - On Oct 17, 10:23 am, Mohamed Lrhazi lrh...@gmail.com wrote: - When the master calls my ENC, it knows what the environment of the

[Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread jcbollinger
On Oct 16, 6:38 pm, Mohamed Lrhazi lrh...@gmail.com wrote: I tried to work around the problem by having a copy of the ENC per environment, which would work for me too... but then that does not work either: external_nodes = /etc/puppet/environments/$environment/gu-enc/gu-enc.py In the

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Mohamed Lrhazi
On Mon, Oct 17, 2011 at 8:53 AM, jcbollinger john.bollin...@stjude.org wrote: On Oct 16, 6:38 pm, Mohamed Lrhazi lrh...@gmail.com wrote: I tried to work around the problem by having a copy of the ENC per environment, which would work for me too... but then that does not work either:

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Mohamed Lrhazi
To be clearer.. am asking about ENC setting the environment, just 'finding it out. On Mon, Oct 17, 2011 at 11:23 AM, Mohamed Lrhazi lrh...@gmail.com wrote: On Mon, Oct 17, 2011 at 8:53 AM, jcbollinger john.bollin...@stjude.org wrote: On Oct 16, 6:38 pm, Mohamed Lrhazi lrh...@gmail.com

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Dan Bode
The client's environment is stored as a fact. Facts are saved before the ENC is called. By default, they will be saved to /var/lib/puppet/yaml/facts/NODE_NAME/TIMESTAMP.yaml An ENC can read a client's latest environment and other facts from this location. -Dan On Mon, Oct 17, 2011 at 8:25 AM,

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Mohamed Lrhazi
Task a lot Dan... I will use that, though I was hoping for a solution using the inventory service...It looks like one needs to know the environment first, before speaking to it: http://docs.puppetlabs.com/guides/rest_api.html#facts Mohamed. On Mon, Oct 17, 2011 at 11:40 AM, Dan Bode

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Dan Bode
On Mon, Oct 17, 2011 at 9:42 AM, Mohamed Lrhazi lrh...@gmail.com wrote: Task a lot Dan... I will use that, though I was hoping for a solution using the inventory service...It looks like one needs to know the environment first, before speaking to it: The same should also hold true for the