I probably also should have mentioned I am using Ubuntu 14 and this is 
running locally via Vagrant and the Vagrant agent provisioner. I've tried 
running the puppet agent manually after the Vagrant provisioning fails and 
I receive the same error message. 

Jose - When you say "the command" what do you mean? The node classifier? My 
VM doesn't have a puppet user so I checked to see what user the agent was 
running under and it is root.

root@nexus:/home/vagrant# ps -ef | grep puppet

root      1480     1  0 11:01 ?        00:00:01 /usr/bin/ruby /usr/bin/
*puppet* agent
- Taylor

On Saturday, July 12, 2014 4:41:16 AM UTC-7, Jose Luis Ledesma wrote:
>
> Have you tried to run the command with the same user the puppet master is 
> running? (Usually puppet)
>
> Regards,
> El 12/07/2014 13:39, "Taylor Leese" <tlee...@gmail.com <javascript:>> 
> escribió:
>
>> Hi all,
>>
>> I'm trying to setup an external node classifier and I'm running into an 
>> error that I haven't been able to resolve.
>>
>> *Error: Could not retrieve catalog from remote server: Error 400 on 
>> SERVER: Failed when searching for node puppet.myhost.com 
>> <http://puppet.myhost.com>: Failed to find puppet.myhost.com 
>> <http://puppet.myhost.com> via exec: Execution of 
>> '/etc/puppet/bin/node_classifier puppet.myhost.com 
>> <http://puppet.myhost.com>' returned 1: *
>> This is the relevant part of my puppet.conf:
>>
>> *node_terminus = exec*
>> *external_nodes = /etc/puppet/bin/node_classifier*
>>
>> The interesting thing is that if I run the classifier manually I get what 
>> appears (to me) to be correct output. I'm using Puppet 3.4.3. Any idea what 
>> I might be doing wrong?
>>
>> *root@puppet:/etc/puppet# ./bin/node_classifier puppet.myhost.com 
>> <http://puppet.myhost.com>*
>>
>> *--- *
>>
>> *  classes: *
>>
>> *    - apt*
>>
>> *    - common*
>>
>> *    - ntp*
>>
>> *    - puppet*
>>
>> *    - sudo*
>>
>> *    - users*
>>
>> *  parameters: *
>>
>> *    puppetserver: puppet.myhost.com <http://puppet.myhost.com>*
>>
>> *  environment: production*
>>
>> *root@puppet:/etc/puppet# *
>> - Taylor
>>
>> -- 
>> 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 <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/d5056060-42ad-4807-8b47-7c9b204bc94e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/d5056060-42ad-4807-8b47-7c9b204bc94e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/31cd8d4d-54bc-44dd-9ef6-73fc2409829d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to