When trying to run puppet agent on Windows, I get the following error after
successuful certificate creation:
Unable to fetch my node definition, but the agent run will continue:
Error 400 on SERVER: Failed to find winblows.nova.local via exec: Execution
of '/etc/puppet/node.rb winblows.nova.local' returned 1:
When I run the command on the Puppet server I get the following :
root@puppet:~# /etc/puppet/node.rb winblows.nova.local
No such file or directory -
/var/lib/puppet/yaml/facts/winblows.nova.local.yaml
Indeed, the file /var/lib/puppet/yaml/facts/winblows.nova.local.yaml does
not exist on the master. The windows host however is visible in Forman's
web interface. Linux nodes are registering just fine with Puppet/Foreman.
Puppet agent version on Windows is 3.7.3
Puppet master version is 3.7.3
Foreman version is 1.5.2
I found the problem by running puppet agent -t --debug --trace :
it was an outdated lib module (jenkins.rb) that was causing puppet agent to
fail.
···
Le vendredi 7 novembre 2014 12:32:42 UTC-5, Claude Durocher a écrit :
>
> When trying to run puppet agent on Windows, I get the following error
> after successuful certificate creation:
>
> Unable to fetch my node definition, but the agent run will continue:
> Error 400 on SERVER: Failed to find winblows.nova.local via exec:
> Execution of '/etc/puppet/node.rb winblows.nova.local' returned 1:
>
> When I run the command on the Puppet server I get the following :
>
> root@puppet:~# /etc/puppet/node.rb winblows.nova.local
> No such file or directory -
> /var/lib/puppet/yaml/facts/winblows.nova.local.yaml
>
> Indeed, the file /var/lib/puppet/yaml/facts/winblows.nova.local.yaml does
> not exist on the master. The windows host however is visible in Forman's
> web interface. Linux nodes are registering just fine with Puppet/Foreman.
>
> Puppet agent version on Windows is 3.7.3
> Puppet master version is 3.7.3
> Foreman version is 1.5.2
>
>
>