On Fri, Sep 17, 2010 at 9:42 AM, Alan Barrett <a...@cequrux.com> wrote:
> On Fri, 17 Sep 2010, Nigel Kersten wrote:
>> >> On Wed, Sep 15, 2010 at 09:31:19PM +0200, Alan Barrett wrote:
>> >> > I use an external node classifier purely for the purpose of
>> >> > setting the environment [...]
>> > I have tested with incorrect environments on the client's command
>> > line or in the client's puppet.conf, and the server correctly uses
>> > the environment from the external node classifier.
>>
>> Are you absolutely positive about this ?
>
> Yes, for puppet 0.25.5.
>
> I just ran "/usr/local/sbin/puppetd --onetime --test --noop
> --environment=WRONG --tags=notify", and I saw the client perform
> "GET /WRONG/catalog/host.domain.example?...", but it received
> the catalog for the correct environment (and stashed it in
> /var/puppet/client_yaml/catalog/host.domain.example), and it performed a
> "notify" whose text contains the correct environment name.
>
> I repeated the test three times, with (1) an environment that does not
> exist at all on the server, (2) an environment called "UNCONFIGURED",
> which is the default as far as puppetmasterd is concerned, and whose
> manifest contains not much more than a "fail" statement, and (3) a
> more normal environment that just happened to be incorrect for this
> client.  I then repeated test (1) (but not the others) by specifying the
> incorrect environment in puppet.conf instead of on the command line.  I
> received identical results every time.

So you're not seeing the mismatch between files and file metadata as
described in the bug?

Do you have a default modulepath defined that things are falling back to?

>
> I also know that the server was not trying to trick me by substituting
> the correct $environment string into the notify message from the catalog
> for some incorrect environment, because all environments contain 'node
> default { fail "..." }', and the fail as not triggered.
>
> Something that might be relevant here is that my external node
> classifier prints this sort of output:
>
>  ---
>  parameters:
>    environment: FOO
>
> whereas somebody told me a few days ago that it's supposed to
> put environment at the top level, not inside "parameters".
>
> --apb (Alan Barrett)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to