-
Notifications
You must be signed in to change notification settings - Fork 129
Description
We run a Foreman instance + couple of Smart Proxies, but we don't use the installer. Instead, we've added the modules to our environment via r10k.
As we don't use the DNS features of the Smart Proxy, only theforeman-foreman_proxy is installed but not theforeman-dns.
With #842, a hard dependency on theforeman-dns has been introduced.
The PR added the usage of data types, which are from theforeman-dns.
Upgrading foreman_proxy to >= v26.1.0 now results into an error, if theforeman-dns is not available:
Error: Could not call 'find' on 'catalog': Evaluation Error: Resource type not found: Dns::Forwarder (file: environments/dev/modules/foreman_proxy/manifests/init.pp, line: 390, column: 9)
Of course there's already a local Puppet dns module, which has nothing in common with theforeman-dns ;)
As a workaround I could add the relevant types to our local dns module.
This is probably an edge-case and rather uncommon deployment model of Foreman, as the installer is not used.
The metadata.json correctly specifies theforeman-dns as a dependency, so this is correctly documented.
Duplicating the data types between theforeman-foreman_proxy and theforeman-dns is not a good solution either.
I am just wondering, if deploying Foreman/Smart Proxies without the installer is really uncommon and only an afterthought, if at all?