Sync available classes to foreman-proxy

Problem:
Is there a possibility to sync all classes that are available on foreman (master) to all of the connected foreman-proxy-instances?

Actually, if I add a host to a foreman-proxy, the puppet agent --test-run fails with:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find class accounts for host.example.com on node foreman-proxy.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

If I install this module manually, the next module is missing. So I’d need to install them all manually?

Yes, Foreman doesn’t manage classes for you. Typical solutions are r10k, g10k and librarian-puppet.

1 Like