Re: [Puppet Users] Failed to find [host] via exec

2014-07-14 Thread jcbollinger
On Sunday, July 13, 2014 10:47:26 AM UTC-5, Taylor Leese wrote: > > The work around I went with is to just avoid the "require 'puppet'" line > in my external node classifier so I can avoid this issue completely. I just > ignore the first line of the YAML file in /var/lib/puppet/yaml/facts/ and

Re: [Puppet Users] Failed to find [host] via exec

2014-07-13 Thread Taylor Leese
The work around I went with is to just avoid the "require 'puppet'" line in my external node classifier so I can avoid this issue completely. I just ignore the first line of the YAML file in /var/lib/puppet/yaml/facts/ and do YAML.load rather than YAML.load_file. - Taylor On Saturday, July 12,

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread Taylor Leese
It's also worth mentioning that even if I chown and chgrp /root/.facter/facts.d to puppet I still receive the same error. That also doesn't seem like it should be the solution. I found two Puppet issues that may be related, but it's not entirely clear if they are exactly the same. https://ticke

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread Taylor Leese
Jose - Ah, the puppet master itself is running as the "puppet" user. *root@puppet:/etc/puppet# ps -ef | grep puppet* *root 1362 1 0 10:55 ?00:00:02 /usr/bin/ruby /usr/bin/puppet agent* *puppet 20719 1 0 11:31 ?00:00:00 Passenger RackApp: /usr/share/puppet/rack

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread José Luis Ledesma
The node classifier command is launched by the same user the runs puppet master, and normally it is the 'puppet' user. You should try running the node classifier command in the puppet master with the same user it runs. Regards El 12/07/2014 13:52, "Taylor Leese" escribió: > I probably also shou

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread Taylor Leese
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 d

Re: [Puppet Users] Failed to find [host] via exec

2014-07-12 Thread José Luis Ledesma
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" 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

[Puppet Users] Failed to find [host] via exec

2014-07-12 Thread Taylor Leese
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: Failed to find puppet.myhost.com via exec: Ex