Set up a secondary puppetmaster

Hello,
I am experiencing some issues setting up a secondary puppetmaster using
foreman to reduce the load on the main one.

I have followed the documentation (
http://www.theforeman.org/manuals/1.9/index.html#3.2.3InstallationScenarios)
regarding a standalone puppet master.

I had to add it manually to the smart proxies.

To test it on a client I am executing : puppet agent -t --noop
–server=new.puppetmaster.company.org
<http://new.puppetmaster.company.org/>

The client output :
Notice: Ignoring --listen on onetime run
Warning: Unable to fetch my node definition, but the agent run will
continue:

Warning: Find
/production/node/server.domain.org?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4&fa.
<http://server.domain.org/?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4&fa.>
resulted in 404 with the message: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN

">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /production/node/server.domain.org
<http://server.domain.org/> was not found on this server.</p>

</body></html>
[…]
Info: Loading facts
Info: Loading facts
Error: Could not retrieve catalog from remote server: Find
/production/catalog/server.domain.org?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4.
<http://server.domain.org/?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4.>
resulted in 404 with the message: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">

<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /production/catalog/server.domain.org
<http://server.domain.org/> was not found on this server.</p>

</body></html>
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Error 405 on SERVER: <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">

<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL
/production/report/server.domain.org <http://server.domain.org/>.</p>

</body></html>

On the new puppetmaster (var/log/httpd/puppet_error_ssl.log) :

[Thu Aug 20 13:31:14 2015] [error] [client 192.168.201.13] File does not
exist: /etc/puppet/rack/public/production

I guess I am missing some steps.

Any ideas ?

Thank you

Hi,
When I run /etc/puppet/node.rb server.domain.org I get No such file or
directory - /var/lib/puppet/yaml/facts/server.domain.org.yaml.

Could the problem be that puppet is looking for the facts locally and not
on the main server ? I am pretty confused…

Thanks

··· On 21 August 2015 at 10:12, Fabien CARRE wrote:

Hello,
I am experiencing some issues setting up a secondary puppetmaster using
foreman to reduce the load on the main one.

I have followed the documentation (
http://www.theforeman.org/manuals/1.9/index.html#3.2.3InstallationScenarios)
regarding a standalone puppet master.

I had to add it manually to the smart proxies.

To test it on a client I am executing : puppet agent -t --noop
–server=new.puppetmaster.company.org
http://new.puppetmaster.company.org/

The client output :
Notice: Ignoring --listen on onetime run
Warning: Unable to fetch my node definition, but the agent run will
continue:

Warning: Find
/production/node/server.domain.org?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4&fa.
http://server.domain.org/?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4&fa.
resulted in 404 with the message:


404 Not Found

Not Found


The requested URL /production/node/server.domain.org
http://server.domain.org/ was not found on this server.



[…]
Info: Loading facts
Info: Loading facts
Error: Could not retrieve catalog from remote server: Find
/production/catalog/server.domain.org?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4.
http://server.domain.org/?transaction_uuid=a112403c-cfc3-486b-8195-0004c8bfe9e4.
resulted in 404 with the message:


404 Not Found

Not Found


The requested URL /production/catalog/server.domain.org
http://server.domain.org/ was not found on this server.



Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Error 405 on SERVER:

405 Method Not Allowed

Method Not Allowed


The requested method PUT is not allowed for the URL
/production/report/server.domain.org http://server.domain.org/.


On the new puppetmaster (var/log/httpd/puppet_error_ssl.log) :

[Thu Aug 20 13:31:14 2015] [error] [client 192.168.201.13] File does not
exist: /etc/puppet/rack/public/production

I guess I am missing some steps.

Any ideas ?

Thank you